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

Hiding Expand/Collapse

2 Answers 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paula
Top achievements
Rank 1
Paula asked on 12 Oct 2010, 05:30 PM
I have set my masterview to

 

 

 

 

ExpandCollapseColumn-Display="False" 

 

 

and have 
<expandcollapsecolumn Display="false"
</expandcollapsecolumn>

But I am not getting the desired results.  The column is gone for the rows but the nested view still show a large grey space.  Please see attached.  Why is it still showing in the nested template?

Thanks in advanced.
Paula

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
illumination
Top achievements
Rank 2
answered on 12 Oct 2010, 07:00 PM

Have you tried:

Protected Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.PreRender
    If Not Page.IsPostBack Then
        RadGrid1.MasterTableView.Items(0).Expanded = False
        RadGrid1.MasterTableView.Items(0).ChildItem.NestedTableViews(0).Items(0).Expanded = False
    End If
End Sub
Thanks.
0
Princy
Top achievements
Rank 1
answered on 13 Oct 2010, 11:51 AM
Hi Paula,

Give a try with the following CSS on page to hide the expand/collapse column.
CSS:
<style type="text/css">
    .rgExpandCol
    {
        display:none !important;
    }
</style>

Find the forum that discussed similar case:
Hiding Expand/Collapse column


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