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

[Solved] RadGrid Custom Skin

2 Answers 140 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric Ulliac
Top achievements
Rank 1
Eric Ulliac asked on 04 Jun 2008, 02:25 PM
Hi,

I've created a no embedded (custom) skin in my application for RadGrid compnent. I use the  ASP.NET Themes like :
    http://www.telerik.com/help/aspnet-ajax/themeshowto.html
I've started from a built-in skin and I've rename and place it in my folder theme (App_Themes/MyTheme).
I've not forget to set the EnableEmbeddedSkins property to false.
At the end I've obtain a good result with the css file (App_Themes/MyTheme/Grid.MyTheme.css) but the GridEditCommandColumn in the radGrid don't find the good path to the images folder (App_Themes/MyTheme/Grid).

So I tried to resolve it with a .skin file as :
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI"  Assembly="Telerik.Web.UI" %> 
 

<telerik:RadGrid Skin="MyTheme" runat="server" EnableEmbeddedSkins="false"
    <MasterTableView
        <EditFormSettings> 
            <EditColumn ButtonType="ImageButton" EditImageUrl="~/Images/editer.gif" /> 
        </EditFormSettings> 
    </MasterTableView> 
</telerik:RadGrid> 

But it doesn't work too... Many ideas?

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 06 Jun 2008, 08:08 AM
Hi Eric,

Please try using this:

    <MasterTableView>
        <Columns>
            <telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/Images/editer.gif" />
        </Columns>
    </MasterTableView>


Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Eric Ulliac
Top achievements
Rank 1
answered on 17 Jun 2008, 10:22 AM
Hi,

I've tried this solution but it imposes to have an editColumn in all my radGrids if I put this code in my skin file. It works good if I do this directly in each radGrid but it's not a centralized way.

Thanks for your answer
Tags
Grid
Asked by
Eric Ulliac
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Eric Ulliac
Top achievements
Rank 1
Share this question
or