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

Cell Padding on Custom Skin started from Default

3 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin Warnke
Top achievements
Rank 1
Kevin Warnke asked on 18 Jul 2010, 03:09 PM
I'm creating a custom skin that started from the Default skin that comes with the controls.

It's going fine except no matter what I try to do to increase the padding of the cells nothing seems to work.  I even tried putting "padding: 15px" in EVERY class definition but the table is still tight with little padding.

What am I missing to get more white space in my table when starting from the Default skin definition?

Thanks!
Kevin

3 Answers, 1 is accepted

Sort by
0
Kevin Warnke
Top achievements
Rank 1
answered on 18 Jul 2010, 06:23 PM
I did some exploring and have found out the RadGrid is outputting one a webresource CSS entry that include defaults for the entire grid.  It doesn't specify a skin in the content but it does have things like rgHeader and rgRow which is overwriting MY entries because it's embedded in the HTML AFTER my customer skins are listed.

How do I prevent the grid from doing this?

Thanks,
Kevin
0
Kevin Warnke
Top achievements
Rank 1
answered on 18 Jul 2010, 06:38 PM
To make matters worse it's embedding the following in the HTML:

<tr id="ctl04_RadGrid1_ctl00__0" class="rgRow" style="background-color: #fbfbfb;">

Nowhere in my code am I asking it to set the background-color to fbfbfb.

Why is the grid outputting this???

Thanks,
Kevin
0
Kevin Warnke
Top achievements
Rank 1
answered on 18 Jul 2010, 06:43 PM
Wow.  It was something else entirely.  Ignore this entire post.  Thanks
Tags
Grid
Asked by
Kevin Warnke
Top achievements
Rank 1
Answers by
Kevin Warnke
Top achievements
Rank 1
Share this question
or