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

Dynamic Nested Grids

6 Answers 129 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Khizar Khan
Top achievements
Rank 1
Khizar Khan asked on 28 Apr 2011, 05:35 PM

Hi,

I have a main grid which has several records and on a datasource which is not visible in the grid column has a indicator that there is some history and when I click on the +(expander), I have to go and fectch the history records and build the nested grid.

if you have any suggestion, can you please let me know.

i have a limilation of fecting all the record and build the dataset initially and there history could be in big numbers and hence it could lead to performance related issues... hence I want to do it on demand when the using wishes to see it.

thanks for your help in advance.

Regards,
Khizar

6 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 29 Apr 2011, 11:50 AM
Hello Khizar Khan,

For load on demand hierarchy please take a look at this help article.
Also you can take a look at this thread for a more in depth discussions about how to achieve the desired behavior.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
Jack
Telerik team
answered on 03 May 2011, 01:13 PM
Emanuel, thank you for your suggestion.

Khizar, please check the help article suggested by Emanuel. It describes how to create a load-on-demand hierarchy for RadGridView. Please do not hesitate to contact us if you have further questions.
 
All the best,
Jack
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
0
Khizar Khan
Top achievements
Rank 1
answered on 03 May 2011, 03:54 PM
Hi,

Thanks for the info, was very useful.

It works now as expected, the only probem i have is.. in my main grid there is a possibility that there is no history record in the main grid.. the indicator will say that it is false.

how do i set the expander (+) for some records where there is no history.?

Regards,
Khizar
0
Emanuel Varga
Top achievements
Rank 1
answered on 03 May 2011, 06:55 PM
Hello again,

For normal hierarchy cases you can hide the expander sign by following the steps in this KB article.

But because you want to use load on demand you cannot use this. because if you already know if there are some child records related to a specific record it is no longer load on demand.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
Khizar Khan
Top achievements
Rank 1
answered on 05 May 2011, 10:36 AM
Thanks Emanuel ,

In my case, I am only having a indicator that there is history and I want to load it when the user wants to see it. otherwise it is a bit of performance overhead for us to load all the history records.

can I request for this feature in your future release. I am sure it will be helpful for other as well.

Regards,
Khizar
0
Julian Benkov
Telerik team
answered on 06 May 2011, 11:47 AM
Hi Khizar,

I logged the feature request concerning the support of full lazy mode in load-on-demand scenario, like the current implementation of RadTreeView. The new feature will be added in one of the next official
releases. 

Thank you for your time and cooperation.

Regards,
Julian Benkov
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
Khizar Khan
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Jack
Telerik team
Khizar Khan
Top achievements
Rank 1
Julian Benkov
Telerik team
Share this question
or