This is a migrated thread and some comments may be shown as answers.
Hide HierarchyChildTemplate is there are no records?
4 Answers 34 Views
This is a migrated thread and some comments may be shown as answers.
madladuk
Top achievements
Rank 2
madladuk asked on 26 May 2010, 12:18 PM
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

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 May 2010, 12:53 PM
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.
0
madladuk
Top achievements
Rank 2
answered on 26 May 2010, 01:16 PM
That worked a treat! Thanks for the quick response!

P
0
Venkatesh
Top achievements
Rank 1
answered on 04 Mar 2014, 03:43 PM
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
0
Dimitrina
Telerik team
answered on 06 Mar 2014, 04:54 PM
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!

Asked by
madladuk
Top achievements
Rank 2
Answers by
Vlad
Telerik team
madladuk
Top achievements
Rank 2
Venkatesh
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or