Hello everyone,
My head is going to blow up :D
I am generating a RadGrid in code-behind. First, i was using a default skin to be focused on functions, and not appearance.
I reached what i wanted to have on my grid, and now, i am trying to apply custom css class.
So, i removed the default skin from the grid by setting this :
I have created a random class, for example this :
In my code-behind, i set the CssClass property :
Then, i add my columngroup to my grid, etc. But this is not working.
When i have a look on the HTML generated code, i see that there is still "rgMultiHeaderRow" class, and "rgHeader". My CssCLass aren't there. I don't want to set a unique css class for headers but severaln, and have it inside my css files in order to modify easily what i want.
Please see in attachement my grid with default skin : defaultskin.jpg
And what i want to achieve : grid.jpg. I made this one with attribute in ASPX page, but i want to build css inside css files.
Is it possible to do that ? Why is it so hard to set css classes ? Am i doing this wrong ?
My head is going to blow up :D
I am generating a RadGrid in code-behind. First, i was using a default skin to be focused on functions, and not appearance.
I reached what i wanted to have on my grid, and now, i am trying to apply custom css class.
So, i removed the default skin from the grid by setting this :
EnableEmbeddedSkins="false" Skin=""
I have created a random class, for example this :
.myClass
{
background-color
:
blue
;
}
In my code-behind, i set the CssClass property :
GCG_headerGroup =
new
GridColumnGroup();
GCG_headerGroup.HeaderStyle.CssClass = "myClass";
Then, i add my columngroup to my grid, etc. But this is not working.
When i have a look on the HTML generated code, i see that there is still "rgMultiHeaderRow" class, and "rgHeader". My CssCLass aren't there. I don't want to set a unique css class for headers but severaln, and have it inside my css files in order to modify easily what i want.
Please see in attachement my grid with default skin : defaultskin.jpg
And what i want to achieve : grid.jpg. I made this one with attribute in ASPX page, but i want to build css inside css files.
Is it possible to do that ? Why is it so hard to set css classes ? Am i doing this wrong ?