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

Bug in cascading CSS for grid

3 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Basel Nimer
Top achievements
Rank 2
Basel Nimer asked on 03 Apr 2010, 09:41 PM
Hello,

I have a user control that is put into a template grid column, the problem is that i am getting the table inside the user control styled with [.RadGrid_Simple .rgRow TD], am not sure if there is a work around to avoid this cascade. but i think it should not even existed.

please let me know if you have a suggestion for a workaround.

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 05 Apr 2010, 10:17 AM
Hi Basel Nimer,

The observed behavior is expected. In order to prevent borders from appearing for the template table cells, you should override the embedded skin. For example, set a CSS class to the template table and then use:

.myTableClass  td
{
       border: 0  !important;
}

or

.RadGrid  .rgMasterTable  .myTableClass  td
{
       border: 0;
}


The correct CSS selector for RadGrid, which would avoid the problem is the parent-child selector:

.rgRow>td
{
 ..........
}

However, this selector is not supported by IE6, so until this browser becomes dead, we will use ".rgRow td" (ancestor-descendant)


Greetings,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Basel Nimer
Top achievements
Rank 2
answered on 05 Apr 2010, 11:40 AM
Hello,

I used this exact technique to solve my problem, but i thought it is a bug, since it can be avoided from your side by setting a specific class to the TD instead of using the keyword TD. (e.g. .RadGridTD).

anyhow, thank you for the comment,

One question related to telerik but not to Grid or something.

do you have your bugs and issues support portal to be downloaded somewhere? developers can make use of that system i think.

0
Dimo
Telerik team
answered on 05 Apr 2010, 03:14 PM
Hi Basel Nimer,

Rendering a CSS class for every single data cell will cause the control's HTML output to increase drammatically. I doubt that you would want that.

I am afraid we do not provide a downloadable version of our Public Issue Tracking System (I suppose this is what you mean by "bugs and issues support portal").

Best wishes,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Basel Nimer
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Basel Nimer
Top achievements
Rank 2
Share this question
or