Hide HierarchyChildTemplate is there are no records?

5 posts, 0 answers
  1. madladuk
    madladuk avatar
    126 posts
    Member since:
    Dec 2009

    Posted 26 May 2010 Link to this post

    Hi,

    When using the HierarchyChildTemplate if there are no child records then the nested grid shows with just the columns. Is there are way to hide this is there is no data. Therefore the user will see if a record has sub records as these will be the only ones showing a callapsable icon.

    Thanks
    p
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 26 May 2010 Link to this post

    Hi,

    You can use RowLoaded event to set IsExpandable property to desired value similar to this demo.

    Kind regards,
    Vlad
    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.
  3. DevCraft banner
  4. madladuk
    madladuk avatar
    126 posts
    Member since:
    Dec 2009

    Posted 26 May 2010 Link to this post

    That worked a treat! Thanks for the quick response!

    P
  5. Venkatesh
    Venkatesh avatar
    4 posts
    Member since:
    Sep 2013

    Posted 04 Mar 2014 Link to this post

    problem occurs if is use ExpandAllHierarchyItems with toggle button after click on this toggle button its expand all the record those who even dont have child item.please reply ASAP

    Thanks 
    Venkatesh Mahendru
  6. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 06 Mar 2014 Link to this post

    Hi,

    You can check this forum thread where a similar topic has already being discussed.

    Regards,
    Didie
    Telerik

    DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

Back to Top
DevCraft banner