开发者

How can I style normal html tables (or ASP tables) like the rest of the RadGrid in my website?

开发者 https://www.devze.com 2022-12-30 22:38 出处:网络
I\'d like to have a normal table to look like RadGrids, is there an easy way I can use the RadGrid styles (keeping theming i开发者_C百科n mind)?Using a tool like Firebug, you can inspect the table gen

I'd like to have a normal table to look like RadGrids, is there an easy way I can use the RadGrid styles (keeping theming i开发者_C百科n mind)?


Using a tool like Firebug, you can inspect the table generated by RadGrid.

The example shown on this page gives the following results:

<table class="rgMasterTable rgClipCells">
   <thead>
     <th class="rgHeader" scope="col">header</th>
   </thead>
   <tbody>
      <td class="rgRow">cell</td>
   </tbody>
</table>

Adding the classes stated here to your own table should copy the style from the rad grid.


I have been playing with this, and it seems you need to wrap the table in div(s) with certain styles - maybe due to themes? Maybe I'm still missing something, but this is the only way I could get it to work.

<div class="RadGrid RadGrid_Sunset">
    <table class="rgMasterTable rgClipCells">
        <thead>
            <th class="rgHeader" scope="col">header</th>
        </thead>
        <tbody>
            <td class="rgRow">cell</td>
        </tbody>
    </table>
</div>
0

精彩评论

暂无评论...
验证码 换一张
取 消