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

Telerik.WebControls.RadGrid skins VS Telerik.Web.UI.RadGrid skins

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chilambarasan
Top achievements
Rank 1
Chilambarasan asked on 04 May 2012, 08:02 AM
I have used both Telerik.WebControls.RadGrid and Telerik.Web.UI.RadGrid.

Telerik.WebControls.RadGrid has skin property as Windows (skin="Windows") and Telerik.Web.UI.RadGrid has skin property as Outlook (skin="Outlook").

Now I need the same styles for Telerik.Web.UI.RadGrid as like the Telerik.WebControls.RadGrid.

I have tried this by changing the skin as "Windows" name and EnableEmbeddedSkins="false" for Telerik.Web.UI.RadGrid. It applies some of its style as "Windows" but not similar as Telerik.WebControls.RadGrid.

Can anyone help me.

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 08 May 2012, 10:09 PM
Chilambarasan,

If you are using a current version of the RadGrid (Q3 2111 or newer), you should reference this forum post which provides a good understanding of how skins work in the current release:

Separate Skin Assembly in RadControls for ASP.NET AJAX with Q3'11

The list of currently available, buiit-in skins is provided here. The ASP.NET classic version of RadGrid offered the "Windows" skin which is since deprecated.

So, you'd have to create a custom skin to mimic that skin by following these instructions:

If you use a custom skin you need to set the EnableEmbeddedSkins property of the control to false, as well as set the Skin property to the name of the custom skin. If you do not do so, an exception will be thrown saying that there is no embedded skin matching the Skin property.

The process for creating a custom skin is covered here.

Hope this helps!
Tags
Grid
Asked by
Chilambarasan
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or