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

OnBatchEditOpening in IE and in Chrome

1 Answer 113 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raddy Rad
Top achievements
Rank 1
Raddy Rad asked on 07 Feb 2014, 01:35 PM
Hi, i'm noticing different selected item reported in the mastertableview because the event is triggered before the row is selected in IE but AFTER in chrome.

I'm trying to call getdatakeyvalue in the selecteditem to determine if i should cancel the edit, and the before and after does make a big difference.

Please advice if i should be doing something else..

Thanks,
raddy

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 12 Feb 2014, 08:45 AM
Hello Raddy,

Make sure that you call get_dataItems() functionality before accessing the item. Please check out the following code snippet.
function OnBatchEditOpening(sender, args)
{
    sender.get_masterTableView().get_dataItems();
    alert($find(args.get_row().id).getDataKeyValue("ClientDataKeyName"));
}


Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Raddy Rad
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or