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

Can I prevent the detailTemplate's render when I sort the Grid?

2 Answers 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 03 May 2012, 09:53 AM
I put some kind of subGrid in the detailTemplate of kendoGrid, then I do some changes to the subGrid, but after I sort or filter the kendoGrid, I just found what i did was gone. So what should I do? maybe there's some method can do the job that when i change the datasource of kendoGrid, which can prevent the detailTemplate's render?

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 04 May 2012, 10:47 AM
Hello Chris,

The observed behavior is by design and I am afraid it cannot be prevented out-of-the-box. When the Grid's datasource fires its change event, the Grid rebinds in order to show valid and up-to-date data.

I am not aware of your exact scenario, but you can try thinking in the opposite direction - what should be done, so that the subGrid state is persisted after the outer Grid is rebound.

Kind regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Chris
Top achievements
Rank 1
answered on 07 May 2012, 07:28 AM
Thanks :D
Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Chris
Top achievements
Rank 1
Share this question
or