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

Ii there a way to update grid columns after initialization.

1 Answer 128 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 26 Mar 2013, 05:34 PM
I'm trying to rebind grid to a different datasource and would like to update the header columns .

Tried the follwoings but not workign
$('#grid')..data("kendoGrid").columns=columnStringArray;

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 27 Mar 2013, 01:23 PM
Hi Steven,


The content of the grid headers is set only when the Grid is initialized for the first time and could not be updated through the API. You could change it manually with jQuery and standard DOM operations.

 

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