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

Hide Expand Collapse Column

1 Answer 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Timothy Kruszewski
Top achievements
Rank 1
Timothy Kruszewski asked on 15 Sep 2010, 12:41 AM
I have the follow code in place to hide the Expand/Collapse column in my grid.  The only problem is that is leaves a rather large blue speace in the details table that I would like to get rid of.

protected void rgTickets_PreRender(object sender, EventArgs e)
    {
        rgTickets.MasterTableView.ExpandCollapseColumn.Display = false;
      
        if (!Page.IsPostBack)
        {
            foreach (Telerik.Web.UI.GridDataItem item in rgTickets.MasterTableView.Items)
            {
                item.Expanded = true;                
                item.ChildItem.Cells[0].Visible = false;
            }
        }
    }

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Sep 2010, 04:13 AM
Hello Timothy,

Try the following CSS to hide the Expand/Collapse column and see if its works.

CSS:
<style type="text/css">
     .rgExpandCol
        {
            display:none !important;
        }
</style>

Thanks,
Princy.
Tags
Grid
Asked by
Timothy Kruszewski
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or