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

Hiding Expand/Collapse column

1 Answer 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andreja Zitnik
Top achievements
Rank 1
Andreja Zitnik asked on 02 Aug 2010, 01:41 PM
Hi,

I have a grid with three levels, with first and second level showing an Expand/Collapse column. I present data in the expanded form and I want to hide those columns so that user cannot collapse records. I tried to hide them by removing <ExpandCollapseColumn> and from setting  <ExpandCollapseColumn Visible=False>, but Expand/Collapse column is still there.

Any ideas how to hide it?

Thank you,
Andreja

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Aug 2010, 08:20 AM
Hello,

Try the following code in order to hide the Expand/Collapse column in hierarchy.

C#:
 
    protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e) 
    { 
        if (e.Column.UniqueName == "ExpandColumn"
        { 
            e.Column.Visible = false
        }   
    } 

http://www.telerik.com/community/forums/aspnet-ajax/grid/hide-disable-expand-column.aspx


-Shinu.
Tags
Grid
Asked by
Andreja Zitnik
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or