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

Column Type to use for Image and need Command Event to Fire

1 Answer 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Will
Top achievements
Rank 1
Will asked on 19 May 2015, 03:25 PM

I have been unable to figure out an appropriate column type for my situation. What I need is to on Item data bound check if there is a string in the column. If there is I need to display an image. When the user clicks the image I need to fire a command event which I will then download a file for the user. The issue is that when I use Grid Bound Column and add an Image Button on item data bound to the control the command event does not fire. If I click the cell the image disappears and the text shows. If I then click on the text the event fires. If i use the Image Column then I have no way to fire the command event on click. There has to be a way to do this. Any suggestions would be appreciated. Thank you.

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 22 May 2015, 09:12 AM
Hi Will,

I am sending a sample RadGrid web site to demonstrate a similar implementation. Please run the attached application and let me know if it works for your scenario.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Will
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or