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

[Solved] Problem in Column Hide/Unhide Due to Styles

1 Answer 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John John
Top achievements
Rank 1
John John asked on 09 Feb 2010, 03:20 PM

Hi

       I am having the issue in Hide/Unhide column in RadGrid. I came to know the problem comes only after setting the custom styles for HeaderStyle template. Otherwise it is working awesomely.

 

I used the following styles for Headers

.HeaderStyle

{

      padding-top: 5px! important;

      display: block! important;

      text-decoration: none! important;

      font-weight: bold! important;

}

 

Also I used to apply the style as below

 

<HeaderStyle CssClass="HeaderStyle" />

 

 

So when I remove the Header Style section no problem finding in it. So how can I make both the functionalities working fine?

 

 

-Thanks in Advance

1 Answer, 1 is accepted

Sort by
0
Accepted
Schlurk
Top achievements
Rank 2
answered on 09 Feb 2010, 04:02 PM
Looking at your CSS it would seem as if the reason you might be running into issues is because of the "display: block! important;" style. When the hide/unhide functionality is called it sets the display to hidden (without the important tags). I would see if there is a possibility for you to either have the display:block not have more specificity than the display:hidden or perhaps even take out the display:block line completely.
Tags
Grid
Asked by
John John
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or