This is a migrated thread and some comments may be shown as answers.

Grid loses widths when columns are changed

2 Answers 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 06 Sep 2018, 06:39 PM

This is a new behavior when I upgraded from 1.1.0 -> 1.3.0. Click toggle a few times and you will see how the widths are lost. Am I doing something wrong or is this a bug?

https://stackblitz.com/edit/react-rf6vis?file=app/main.js

2 Answers, 1 is accepted

Sort by
0
Ryan
Top achievements
Rank 1
answered on 06 Sep 2018, 06:49 PM
I've confirmed that this is new behavior starting with 1.2.0. 
0
Stefan
Telerik team
answered on 07 Sep 2018, 07:38 AM
Hello, Ryan,

Thank you for the example.

When the columns order has to be changed we recommend using the orderIndexproperty of the column:

https://www.telerik.com/kendo-react-ui/components/grid/api/GridColumnProps/#toc-orderindex

I modify the example to demonstrate this approach:

https://stackblitz.com/edit/react-rf6vis-7sitvg?file=app/main.js

I hope this is helpful.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Ryan
Top achievements
Rank 1
Answers by
Ryan
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or