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

How to get cell values on button click at client side

3 Answers 505 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Binary
Top achievements
Rank 1
Binary asked on 15 Jun 2015, 09:46 PM
I have a radgrid on my page and I have placed radbutton on each row of the radgrid at the last column. On button click event, I want to get the first cell value of the respective row. I wanted to do this on using javascript. Is it possible to achieve at client side?

3 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 18 Jun 2015, 11:35 AM
Hello Binary,

I've created a sample RadGrid web site to demonstrate how you can achieve this requirement. Please run the attached application and let me know if it works for you.

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
0
Rohit
Top achievements
Rank 1
answered on 15 Feb 2017, 04:35 PM

Thanks a lot. It worked. 

But can we do this to a asp image button ? 

0
Eyup
Telerik team
answered on 20 Feb 2017, 11:29 AM
Hi Rohit,

Yes, you can use its OnClientClick event handler. Please check the CheckBox template columns in the attached web site sample for a reference.

Regards,
Eyup
Telerik by Progress
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
Grid
Asked by
Binary
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Rohit
Top achievements
Rank 1
Share this question
or