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

Show ExandCollaspe as 3rd Column

1 Answer 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
chirag
Top achievements
Rank 1
chirag asked on 16 Sep 2008, 07:07 PM
$0Hi, I am using NestedView to show details of a row, it works great but I want to show the expand collaspe column as the 3rd column and not the 1st. I added the <telerik:GridExpandColumn HeaderText="" ></telerik:GridExpandColumn> as the 3 column and now I have 2 expand collapse columns so I want to remove the left most column that shows up by default. I tried <ExpandCollapseColumn Display="false" Visible="false" UniqueName="ExpandColumn1"></ExpandCollapseColumn> but that did not work.$0$0

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 17 Sep 2008, 04:42 AM
Hi Chirag,

Try the following code snippet to hide the ExpandCollapse column.

CS:
protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        foreach (GridColumn col in RadGrid1.MasterTableView.RenderColumns) 
        { 
            if (col.UniqueName == "ExpandColumn") 
            { 
                col.Display = false
            } 
        } 
    } 


Thanks
Shinu.
Tags
Grid
Asked by
chirag
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or