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

[Solved] Retreiving the ID from a row

1 Answer 12 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dom
Top achievements
Rank 1
Dom asked on 21 Jul 2011, 07:43 PM
Hello!

Hope somebody can help me with a problem that's been driving me nuts for two days now...

I'm trying to get the ID of a row in a grid and pass it to a window. The problem I'm having though is that I just cannot figure out how to get the ID value, let alone store or pass it anywhere! My grid has an ID column, three other string columns, two .ClientTemplate columns and the usual edit and delete controls.

I've seen quite a few posts which suggest using the ClientEvents.OnRowSelect method, however as I'm using the template columns, this doesn't trigger the OnRowSelect method.

Hope this makes sense. Any pointers or workarounds would be greatly appreciated.

Many thanks,
Dom

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 22 Jul 2011, 06:58 AM
Hi Dom,

 Check the dataItem method.

Regards,
Atanas Korchev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Grid
Asked by
Dom
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or