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

How to attach image button through dynamic creation of a rad grid

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rajendra
Top achievements
Rank 1
rajendra asked on 06 Nov 2008, 01:12 PM

Hi Everybody !!

I have created a rad grid dynamically along with custom skin. Now everything is working properly but not getting image button for edit & delete. Already I have assigned the path for the edit & delete images but each time grid taking link button.

Have a look my code snippet as below :

 

RadGridRow.MasterTableView.EditFormSettings.EditColumn.ButtonType = GridButtonColumnType.ImageButton
RadGridRow.MasterTableView.EditFormSettings.EditColumn.InsertImageUrl =

"../Admin/Update.gif";

 

RadGridRow.MasterTableView.EditFormSettings.EditColumn.UpdateImageUrl =

"../Admin/Update.gif";

 

 


Please suggest me a better way to display image buttons.

Thnx in advance!!
rajendra

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 10 Nov 2008, 08:18 AM
Hi rajendra,

When using no skin, or a custom one, you will also need to set the images path, so that the control knows where to look for the images for the different elements and buttons:

.aspx
<telerik:RadGrid   
 EnableEmbeddedSkins="False" 
 Skin="" 
 ImagesPath="PathToWhereTheImagesAreLocated" 

I hope this helps.

All the best,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
rajendra
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or