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

[Solved] skin icons

1 Answer 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 2
Iron
Iron
Iron
Morten asked on 25 Apr 2009, 05:20 AM
Sometimes I need to setup a CommandItemTemplate and need to setup my own "Add new" and "Refresh" buttons (<asp:ImageButton runat="server" ID="refreshGrid" ImageUrl="~/Images/refresh.gif" CommandArgument="Refresh" />).
When I skin other grids in the same project, I'd like custom CommandItemTemplates to look the same.

How do I get/download/reference the icons from specific Telerik standard skins?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Apr 2009, 07:23 AM
Hi Morten,

Set the CssClass for the ImageButton in the CommandItemTemplate as shown below.

ASPX:
<CommandItemTemplate> 
                    <asp:ImageButton ID="ImageButton1" CssClass="rgAdd" runat="server" />   
                     <asp:ImageButton ID="ImageButton2" CssClass="rgRefresh" runat="server" />   
 </CommandItemTemplate> 

Note:Also add the Skins in RadControls folder.

Thanks
Princy.
Tags
Grid
Asked by
Morten
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Princy
Top achievements
Rank 2
Share this question
or