DropDown in a Grid toolbar

0 Answers 55 Views
DropDownList Grid Toolbar
Théodore
Top achievements
Rank 1
Théodore asked on 18 Jul 2024, 09:36 AM
Hello,

I have a DropDownList in my grid toolbar that represent a list of 'views' for the grid.

When I select one of them, I use both getOptions and setOptions to modify the columns order and states.

My problem is that when I execute setOptions, my DropDownList kendo is lost and don't keep the state it had before setOptions.

How can I achieve this pls ?
Théodore
Top achievements
Rank 1
commented on 22 Jul 2024, 08:38 AM

Finally, I gave up on the idea of ​​using setOptions.
Instead, I manually used kendoGrid.columns and all the other methods in a for loop to update the grid.

Martin
Telerik team
commented on 23 Jul 2024, 06:55 AM

Hello, Theodore,

I just wanted to let you know that any function references are lost if you try to preserve the state using the setOptions/getOptions methods. The reason is explained in the setOptions documentation. A possible approach is to reassign any templates or functions you are using, similar to this How-To example.

Samuel
Top achievements
Rank 1
commented on 25 Jul 2024, 06:37 AM

Hello,

Actually i am also facing this problem but hope this reply will help me. i will recheck the the setOptions documentation. Thanks for your reply.

Best regards,
samuel898  
HP® Store

No answers yet. Maybe you can help?

Tags
DropDownList Grid Toolbar
Asked by
Théodore
Top achievements
Rank 1
Share this question
or