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

[Solved] setOptions is deleting pager content

1 Answer 191 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 27 Jan 2015, 09:15 PM
Hello,

I just noticed a problem with the grid's setOptions method.  When you set a custom pager element, it get's removed after a call to the setOptions method even if the options specified are not related to the pager itself.

Here's a link to an simple example of the problem.

Step 1: click on TestA to add the filterRow to to grid with a custom pager element.

Step 2: click on TestB to remove the filterRow using the setOptions function.  Notice that both the filter row and the custom pager element gets removed.

Simon

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 29 Jan 2015, 12:30 PM
Hello Simon,

Your logic that manually injects a DOM element into the pager element is not part of the Grid and it is expected to lose such changes - the whole Grid is reinitialized when new options are set. 

You need to again manually insert such element after setting the new options.

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Simon
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or