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

Apply RadGrid Styles to asp.net Grid

1 Answer 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Silver
Top achievements
Rank 1
Silver asked on 07 Aug 2012, 07:40 PM

Is it possible to apply RadGrid Styles to asp.net Grid View? Any code sample?

I found this sample (BUT this one is for Generic HTML table)
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/using-telerik-skin-on-generic-table.aspx 
 It is applying webblue theme and it is NOT applying hover color..

I am looking for Hay or Forest theme. Where can I download those files?

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 10 Aug 2012, 12:26 PM
Hello,

To make GridView pick up RadGrid styles, you would need to assign it the same class names as the one RadGrid uses. An example of a GridView using the main grid classes follows below:
<div class="RadGrid RadGrid_Hay">
    <asp:GridView AutoGenerateColumns="true" Width="100%" AutoGenerateSelectButton="true"
        AllowPaging="true" runat="server" ID="GridView1" CssClass="rgMasterTable rgClipCells">
        <HeaderStyle CssClass="rgHeader" />
        <SelectedRowStyle CssClass="rgRow rgSelectedRow" />
        <RowStyle CssClass="rgRow" />
        <AlternatingRowStyle CssClass="rgAltRow" />
    </asp:GridView>
</div>

You can download RadControls skins from the Skins sharing portal:
http://www.telerik.com/support/skins.aspx

As for the hovered style, you would need to manually change the class when the row is hovered, as the grid view items do not have a hovered state.

Regards,
Tsvetina
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.
Tags
Grid
Asked by
Silver
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or