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

Hide default expand collapse column when using expand all

2 Answers 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
MBEN
Top achievements
Rank 1
Veteran
MBEN asked on 05 Jan 2012, 09:49 PM
Hi,

I was showing an expand/collapse all button in the grid using the code smaple in:
 http://www.telerik.com/community/code-library/aspnet-ajax/grid/custom-expand-collapse-column-with-expandall-collapseall-image-button-in-the-header.aspx

However, I am unable to remove the default expand collapse column. I used the solution given in the thread but that does not work for me. It changes the alignment of my grid when it is expanded.
Can you tell me how to hide the default column.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 06 Jan 2012, 05:19 AM
Hello,

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

-Shinu.
0
MBEN
Top achievements
Rank 1
Veteran
answered on 06 Jan 2012, 09:57 PM
I was able to hide the default column using  ExpandCollapseColumn-Display="false".
However the grid is not rendered right when it is expanded.

I've attached a screenshot to help you understand what I mean.
Tags
Grid
Asked by
MBEN
Top achievements
Rank 1
Veteran
Answers by
Shinu
Top achievements
Rank 1
MBEN
Top achievements
Rank 1
Veteran
Share this question
or