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

Is there any way to get a hierarchical datagrid to only update the expanded row?

3 Answers 29 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Scott Earle
Top achievements
Rank 1
Scott Earle asked on 31 Aug 2010, 12:52 PM
When expanding a row in a hierarchical datagrid, the entire grid is updated. If there is a large amount of data on display it can appear to be slow, even though it is only updated a single control (the datagrid).

Is there a way to make it only update the single row that was expanded/collapsed?

The problem is that the grid I am using has content in each row that is pulled in from other sites, and when it has to redraw them all, it can take an age to redraw everything.

Thank you very much,

Scott

3 Answers, 1 is accepted

Sort by
0
Jay
Top achievements
Rank 1
answered on 31 Aug 2010, 02:11 PM
I don't know how you imagine this. This is one control and its state is re-created on every postback - ControlState/ViewSate/PostedData etc.

Why you load all data for all the items. You can use conditionally binding only what needed - it is general paradigm. Nevertheless RadGrid has different loading modes - you experiment and see what is  best for you. In our team we use this a lot and this is why we choose telerik.
0
Scott Earle
Top achievements
Rank 1
answered on 31 Aug 2010, 02:20 PM
As I said: if you expand several rows, and when each row contains data pulled in from other sites,  it can lead to a situation where you have expanded a few rows and it starts to get slow, and it appears clunky to the user because when they expand one row all the other rows have to pull their content in again - sometimes quite slowly.

So yes, we only bind the rows that are open, but after we have populated the row once, it is a horrible user experience when expanding another row because it will repaint every row that is expanded.

Hence the question.
0
Mira
Telerik team
answered on 03 Sep 2010, 08:32 AM
Hello Scott,

Jay is indeed right.
To improve the performance, please try the approach from the Hierarchy with Templates demo or setting HierarchyLoadMode="ServerOnDemand" and let me know whether it helps.

Regards,
Mira
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Scott Earle
Top achievements
Rank 1
Answers by
Jay
Top achievements
Rank 1
Scott Earle
Top achievements
Rank 1
Mira
Telerik team
Share this question
or