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

Refreshing grid

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
luca
Top achievements
Rank 1
luca asked on 13 Feb 2013, 01:37 PM
hello,
i've inserted a new column field with grid.options.columns.push({title:"name", field:"field"}).
then i read the datasource and refresh the grid but nothing happens...
The new column field is defined in options.dataSoruce.schema.model.fields but not, at starting grid init , in the options.columns.
dataSource.transport is so defined:  {read: { url: "aaa.json",dataType: "json"  }}

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 14 Feb 2013, 04:44 PM
Hi Luca,

I am afraid that changing the grid columns is not supported at runtime. My recommendation is to define all columns during the initialization and hide the ones that you do not want to display initially via columns.hidden property. You can display them at runtime using the showColumn menthod.

Kind regards,
Alexander Valchev
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
luca
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or