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

Grid Hierarchy Expand collapse

3 Answers 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Het
Top achievements
Rank 1
Het asked on 16 Sep 2008, 04:11 PM
Telerik Group,

I am using Hierarchy Grid. But I am not able to do what I am trying. I want to show the Expand column only when there is any data in the Detailview grid. If there is not data, expand column will be either blank or without "+" sign (expand image). If there is data then expand column should be shown with the detail grid expanded by default. I used the

grid1.MasterTableView.GetColumn("ExpandColumn").Display

in the Grid1_ItemDataBound, but its not working. I am not sure if this the right property to show and hide the expand column or whether I am using it in a wrong place.

Please help.

Thanks,
Het




3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 16 Sep 2008, 04:29 PM
Hello Het,

Please examine the following article:
Hiding expand/collapse images when no records

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Het
Top achievements
Rank 1
answered on 16 Sep 2008, 04:57 PM
Thanks a million, billion, trillion ,,, Daniel :) !

Thats awesome and thats what I wanted.
0
Shinu
Top achievements
Rank 2
answered on 17 Sep 2008, 04:58 AM
Hi Het,

Check out the following help article which explains how to hide the expand/collapse image when there is no record.
Hiding expand/collapse images when no records

Thanks
Shinu
Tags
Grid
Asked by
Het
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Het
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or