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

Populate the child template from View Model after clicked on the toggle button

3 Answers 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ng
Top achievements
Rank 1
Ng asked on 30 Oct 2014, 06:26 AM
Hi all,

I'm doing on RadGridView with a customized toggle button instead of using the default toggle button. I know it's coming with the ChildTableDefination and GridViewTableDefinition by default. So, since I'm using the customized toggle button, can I populate the child from my View Model once I clicked on the customized toggle button from parent? How could I link the toggle button once I clicked to the HierarchyChildTemplate? Thanks is advanced. Hope there's someone could help me.

Best Regards, 
Ng.

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 31 Oct 2014, 01:25 PM
Hello,

Generally, I would suggest you considering the Row Details option to define hierarchy data. Then, the details will be loaded on demand as they are requested expanding the row details. They do not exist prior this action. In that case, you can subscribe for the LoadingRowDetails method and manually set the source of the underlying e.DetailsElement.

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Ng
Top achievements
Rank 1
answered on 03 Nov 2014, 03:40 AM
Thanks Dimitrina, do you have some guide on it?

Best Regards,
Ng.
0
Dimitrina
Telerik team
answered on 03 Nov 2014, 04:14 PM
Hi,

Have you tried subscribing for the LoadingRowDetails event and using the arguments? Would you please be more specific on what do you experience problem with?
You can also check the Find a control in RowDetailsTemplate following articles:

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

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