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

Clickable image in GridView cell

1 Answer 185 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rehmak
Top achievements
Rank 1
Rehmak asked on 28 Sep 2017, 05:55 AM

Hello,

I want to put a clickable image in GridView cell, that button should have a button click event attached to it and i want to get that cell value in click event.

And i not only want a image in cell but also text from datasource,

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 28 Sep 2017, 09:16 AM
Hi, Rehmak,

The following article shows how you can add an element to a cell: Creating Custom Cells. In your case, you can add two LightVisualElements (one for text and one for image) in a StackLayoutPanel. Then you can use the Click event of the LightVisualElement to handle your requirement.

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Rehmak
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or