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

Load data on Rowdetails visible

4 Answers 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ronald
Top achievements
Rank 1
Ronald asked on 22 Jun 2012, 09:14 AM
I'm new to the RadGridView and I want to implement rowdetails in my RadGridView. To help performance, I only want to load the data in the rowdetails when I expand it and make it visible.  When the rowdetails is visible, it will get data from the database based on the ID of the parent record.  In the rowdetails, I also have another GridView which will be populated when the rowdetails is expanded.  I'd appreciate it if someone can point me in the right direction.

Thanks.

4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 22 Jun 2012, 10:15 AM
Hi,

You caould use the Row Details events to lazy-load your data when the user expands them for the first time (using the LoadingRowDetails event).

You can do anything in those events and populate your grid from anywhere.

I hope this helps.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Ronald
Top achievements
Rank 1
answered on 22 Jun 2012, 10:34 AM
Thanks Didie.  I've know how to populate data in the details view using the same data context as the parent row but now I'm interested to know how to populate the details view from a separate datasource.  I'm probably getting ahead of myself here as I'm also new to Silverlight in general.  Do you have any tips?

Thanks
0
Accepted
Dimitrina
Telerik team
answered on 22 Jun 2012, 11:15 AM
Hi,

 You can find your details element like described here. Once you have found it, you can pull the data from the separate datasource and assign it as an ItemsSource for the child element.

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Ronald
Top achievements
Rank 1
answered on 25 Jun 2012, 03:45 AM
Didie,

Thanks for pointing me in the right direction. I got it working. Thanks!

Tags
GridView
Asked by
Ronald
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Ronald
Top achievements
Rank 1
Share this question
or