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

Get datakey onEdit event?

1 Answer 54 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.
Michael
Top achievements
Rank 1
Michael asked on 05 Mar 2011, 10:08 PM
Hello,

Is there a way to get the datakey on the OnEdit event?

In my grid, I have:

.ClientEvents(events => events.OnEdit(

"onEdit").OnSave("onSave"))

 


and then I would have a OnEdit javascript function:

function

 

onEdit(e) {

 


// need to get datakey
}

Any help is always appreciated.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 07 Mar 2011, 07:46 AM
Hello Michael,

The whole data item is exposed in the OnEdit event's arguments. 

Regards,
Atanas Korchev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or