Changing the position of Kendo Grid UI Columns

0 Answers 273 Views
Grid
Iqbal
Top achievements
Rank 1
Iqbal asked on 20 Mar 2022, 09:55 PM

We have a grid that has approximately 116 columns. Currently we are using kGrid.reorderColumn to change the position of columns. Here is some issues with this method.

For example here is list of columns

1,2,3,4,5,6,7,8,9,10.....116

if I change position from 3 to 10. I have to run reoder 6 times since reoder call only shifts the columns. Now the problem with this rerorder call is, it has performance issues. The larger the gap of the reorder is the slower it gets, for example if I change col3 to col116. It becomes very slow, UI comes back in around 50 secs to 1 min and user thinks that the application is locked and not working.

Now the question is, is there alternative to reorder, in other words is there a method call that exchanges the column position rather than reordering. that way we don't have to call reoder that many times. We will just exchange the position of the columns and be done with it.

I am not sure if there is a way to do that. Please let us know. We would appreciate your feedback.

Thanks,

Iqbal

Georgi Denchev
Telerik team
commented on 23 Mar 2022, 09:44 AM

Hello, Iqbal,

I noticed that you're already communicating with one of my colleagues in the private ticket you opened, so let the discussion continue there. Once an answer has been found, we can share it here for other users to see.

Best Regards,

Georgi

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Iqbal
Top achievements
Rank 1
Share this question
or