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

Dynamic columns problem

2 Answers 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cleones
Top achievements
Rank 1
Cleones asked on 09 Apr 2014, 07:15 PM
Hi,
I need to change dynamically the columns count, and when changing the grid to less columns the rows are ok but the headers maintains the previous columns count, and the final result is a mess.
Please see this for a better clarification:
http://jsfiddle.net/QP835/1/

Can anyone advise?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Apr 2014, 08:31 AM
Hello Javier,

After destroying the old Grid, please remove its inner content from the DOM and leave only its outer <div> on the page. Otherwise the header area will not be recreated.

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Cleones
Top achievements
Rank 1
answered on 14 Apr 2014, 02:36 PM
Hi Dimo,
it's working now, thank you!

Regards
Tags
Grid
Asked by
Cleones
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Cleones
Top achievements
Rank 1
Share this question
or