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

Grid Edit/Delete/Update/Cancel

2 Answers 170 Views
Grid
This is a migrated thread and some comments may be shown as answers.
farzad
Top achievements
Rank 1
farzad asked on 28 Dec 2012, 08:27 PM
Hi,

I want to set the default image url for my command columns(Edit/Delete/Update/Cancel) like what I did for add new record or refresh button. Is that possible? I can change the caption using RadGrid.Main.resx in App_GlobalResources but no luck for image url.


Thanks for your concern

2 Answers, 1 is accepted

Sort by
0
Elliott
Top achievements
Rank 2
answered on 31 Dec 2012, 06:02 PM
check this out - at least for delete and edit
http://stackoverflow.com/questions/6306060/c-sharp-how-to-access-the-buttons-of-telerik-radgrid

for the update and cancel
use a UserControl or EditTemplate and have 2 buttons with CommandName as Update and Cancel

0
Accepted
Shinu
Top achievements
Rank 2
answered on 02 Jan 2013, 06:41 AM
Hi,

Try the following code to achieve your scenario.
aspx:
<EditFormSettings>
 <EditColumn UniqueName="EditCommandColumn" InsertImageUrl="Images/img.gif" ButtonType="ImageButton" UpdateImageUrl="Images/img.png"></EditColumn>
</EditFormSettings>
<telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="../Images/Delete.gif" CommandName="Delete" UniqueName="Delete"></telerik:GridButtonColumn>
<telerik:GridEditCommandColumn ButtonType="ImageButton"></telerik:GridEditCommandColumn>

Thanks,
Shinu.
Tags
Grid
Asked by
farzad
Top achievements
Rank 1
Answers by
Elliott
Top achievements
Rank 2
Shinu
Top achievements
Rank 2
Share this question
or