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

Applying skin to generic table tags

2 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 05 Feb 2009, 08:51 PM

A very simple one, for example:
<table>
 <tr>
    <td> this is a test<td>
 </tr>
<table>

Now, I like to apply "Default" skin to it so that it will look like a RadGrid to achieve some consistent looking. Is it possible or what's the best way to do it?

Thanks,

Gary

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 06 Feb 2009, 09:10 AM
Hi Gary,

Well, given that the respective RadGrid CSS is registered on the page, you simply need to use the same CSS classes as RadGrid :

<div class="RadGrid RadGrid_Default" style="width:400px"
<table class="MasterTable_Default" cellspacing="0" style="width:100%"
<tr> 
    <th class="GridHeader_Default">header cell</th> 
    <th class="GridHeader_Default">header cell</th> 
</tr> 
<tr class="GridRow_Default"
    <td>data cell</td> 
    <td>data cell</td> 
</tr> 
<tr class="GridAltRow_Default"
    <td>data cell</td> 
    <td>data cell</td> 
</tr> 
</table> 
</div> 
 


Sincerely yours,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Gary
Top achievements
Rank 1
answered on 06 Feb 2009, 02:29 PM
This works. Thanks.
Tags
Grid
Asked by
Gary
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Gary
Top achievements
Rank 1
Share this question
or