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

4 posts, 1 answers
  1. Ng
    Ng avatar
    6 posts
    Member since:
    Oct 2014

    Posted 30 Oct 2014 Link to this post

    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.
  2. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 31 Oct 2014 Link to this post

    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.

     
  3. Ng
    Ng avatar
    6 posts
    Member since:
    Oct 2014

    Posted 02 Nov 2014 in reply to Dimitrina Link to this post

    Thanks Dimitrina, do you have some guide on it?

    Best Regards,
    Ng.
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 03 Nov 2014 Link to this post

    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.

     
Back to Top