or
$(
"#grid"
).kendoGrid({
dataSource: {
data:[
{
"ProductID"
:
"1"
,
"ProductName"
:
"name01"
,
"UnitPrice"
: [
'$33.55'
,
'$55.55'
,
'$23.55'
]},
{
"ProductID"
:
"2"
,
"ProductName"
:
"name02"
,
"UnitPrice"
: [
'xx'
,
'yy'
,
'zz'
]},
{
"ProductID"
:
"3"
,
"ProductName"
:
"name03"
,
"UnitPrice"
: [
'aa'
,
'bb'
,
'cc'
]}
]
},
selectable:
"row"
,
columns: [
"ProductID"
,
"ProductName"
,
"UnitPrice"
],
dataBound:
function
(){
$(
"#select"
).bind(
"click"
,
function
(){
var
$row = $(
"#grid"
).data(
"kendoGrid"
).select();
var
product = $(
"#grid"
).data(
"kendoGrid"
).dataItem($row).toJSON();
alert(JSON.stringify(product));
//what i got from alert is:
/*
{"ProductID":"1",
"ProductName":"name01",
"UnitPrice":{
"0":"$33.55",
"1":"$55.55",
"2":"$23.55",
"_events": {"change":[null]},"length":3}}
*/
});
}
});