I did this job follow the Thread :
http://www.kendoui.com/forums/ui/grid/how-can-i-get-the-pure-json-data-of-the-selected-row.aspx
this is my code:
$(
"#synchronizationStart").click(
function(){
var $row = $(
"#employee").data(
"kendoGrid").select();
var data = [];
for (
var i = 0;
i < $row.length;
i++)
{
data[i] = $(
"#employee").data(
"kendoGrid").dataItem(
$row[0]).toJSON();
alert(
data[i]);
}
});
});
but it did't work in my project.
Here is the error in chrome's console:
- Uncaught TypeError: Object #<Object> has no method 'toJSON'
-
-
-
f.event.add.h.handle.i
so, what should i do ?
since my native language is not English, please forgive my grammar errors :)