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

Cssclass attribute

3 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Maxime
Top achievements
Rank 1
Maxime asked on 05 Jul 2012, 02:14 PM
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 :
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 ?

3 Answers, 1 is accepted

Sort by
0
Accepted
Galin
Telerik team
answered on 10 Jul 2012, 02:49 PM
Hello Maxime,

The issue is replicated on our side. Therefore, I will forward it to our developers so they could further investigate this bug and researched on its possible resolution. As soon as we have any updates on this issue we will update you on the status.

Additionally, for reporting the issue you can find your Telerik Points updated.


Kind regards,
Galin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Accepted
Marin
Telerik team
answered on 12 Jul 2012, 03:07 PM
Hello,

 We investigated the issue and it will be resolved for the upcoming service pack of the controls by the end of the month.

Greetings,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Maxime
Top achievements
Rank 1
answered on 13 Jul 2012, 06:52 AM
Many thanks to both of you ! I will be waiting for this update.

Regards.
Maxime Lemare
Tags
Grid
Asked by
Maxime
Top achievements
Rank 1
Answers by
Galin
Telerik team
Marin
Telerik team
Maxime
Top achievements
Rank 1
Share this question
or