This question is locked. New answers and comments are not allowed.
How do you get the DataKey values using Client Side Selection and binding using AJAX?
function onRowSelected(e) {
var grid = $(e.row).parents('#CustomerSites').data('tGrid');
var data = grid.data[$(grid.$tbody[0].rows).index(e.row)];
var id;
for (x in grid.dataKeys)
id = data[x];
alert(id);
}
id is always undefined!!!!
Is this not supported for AJAX binding? I don't want to be forced to display Primary key values in the grid.
John
function onRowSelected(e) {
var grid = $(e.row).parents('#CustomerSites').data('tGrid');
var data = grid.data[$(grid.$tbody[0].rows).index(e.row)];
var id;
for (x in grid.dataKeys)
id = data[x];
alert(id);
}
id is always undefined!!!!
Is this not supported for AJAX binding? I don't want to be forced to display Primary key values in the grid.
John