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

Refresh detail grid

1 Answer 190 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jc mag
Top achievements
Rank 1
jc mag asked on 15 Mar 2012, 09:55 AM
I have a master/detail grid, editing rows is done by displaying a kendo window. When I close it I call myDataSource.fetch(). It works fine for the master grid/datasource (modifications done in the window are displayed in the grid); but it doesn't work when I edit a detail row (by calling myDetailDataSource.fetch()). Is it a bug or a normal behaviour?
(detail data can be refreshed by calling myDataSource.fetch() but in this case I lose the expanded row...)

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 16 Mar 2012, 09:25 AM
Hello JC,

fetch method of the DataSource will cause fresh data to be retrieved, change event of the DataSource will be triggered which will cause the Grid to rebind.

The Grid widget will not persist it's expanded state on rebind. Possible solution is to keep track of which items are expand prior to calling fetch and on dataBound of the Grid to expand the items again.

Regards,
Nikolay Rusev
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
jc mag
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or