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

Grid refresh collapses detail view

3 Answers 129 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 03 Sep 2013, 08:49 PM
I have a grid that is regularly resized, both horizontally and vertically, by the user. Each time the container's size changes, the grid's "refresh" method needs to be called in order for it to resize itself. However, calling the "refresh" method collapses any expanded detail views. (version 2013.1.514)

Is there a way to prevent this from happening?

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 04 Sep 2013, 10:04 AM
Hello Jason,


The described behavior is by design and cannot be prevented. As a solution I would suggest you to store the indexes of the expanded rows. Then after the refresh method is called, you could expand them again via the expandRow method.

 

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jason
Top achievements
Rank 1
answered on 04 Sep 2013, 12:35 PM
Unfortunately, your suggestion is not a solution I can use. The problem is the grid refresh also resets the detail views too. The detail view DOM structure is removed, and the init callback needs to fire again when the view is expanded. In my application, these detail views are complex templates that require multiple ajax calls to fetch data. Some of which take non-trivial time. It makes for a poor user experience.

In my opinion, this is a pretty huge design flaw with the grid. If possible, please send a suggestion to the Kendo team to add a "resize" method to the grid that does not trigger a refresh.
0
Dimiter Madjarov
Telerik team
answered on 05 Sep 2013, 09:47 AM
Hello Jason,


Thank you for your suggestion, I passed it to the developers team. As an additional step, you may also post it in our Kendo User Voice portal. If it receives enough votes from the community we will strongly consider to include it in our future releases.

Have a nice day!

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