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

[Solved] Custom buttons in CommandItem

2 Answers 207 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Per Mangseth
Top achievements
Rank 1
Per Mangseth asked on 03 Jun 2008, 12:44 PM
Hi!

I have a problem displaying custom buttons for add and refresh in the CommandItem on the top of a grid. I set the ImageUrls like this:

<CommandItemSettings AddNewRecordImageUrl="Img/Buttons/add.gif" AddNewRecordText="My text" RefreshImageUrl="Img/Buttons/reload.png" RefreshText="" />

When using a standard skin like Office2007, this works fine, but when I try to do the same when using a custom skin, it just displays the standard images.

I've used the Office2007-skin as a base for my new skin, adding a few things to the custom css, but nothing that affects the CommandItem, but rather the regular GridRows. Do I have to edit and change the sprite-file for this to work? I thought that if I changed some parameters in the aspx-file it would use those settings ahead of those in the css-file?

Any ways to solve this issue?

Cheers,
Erlend Haukland

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 03 Jun 2008, 02:18 PM
Hello Erlend,

Indeed, there seems to be some inconsistency in the behavior of the control. We will look into it in depth. In the meantime, please use the ImagesPath property to specify the location of all RadGrid images at once:

<telerik:RadGrid  ImagesPath="~/Img/Buttons/"  />

In this case you will need to name the images according to the list provided here:

http://www.telerik.com/help/aspnet-ajax/grdskins.html


Best wishes,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Per Mangseth
Top achievements
Rank 1
answered on 04 Jun 2008, 07:26 AM
All right, that worked. Thanks for the quick response.

Cheers,
Erlend Haukland
Tags
Grid
Asked by
Per Mangseth
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Per Mangseth
Top achievements
Rank 1
Share this question
or