我有以下代码
var entries = [
{ "value":"AAPL", "data":665.24, "shares":100 },
{ "value":"AMZN", "data":248.27, "shares":100 },
{ "value":"IBM", "data":194.85, "shares":100 },
{ "value":"CSCO", "data":19.08, "shares":100 },
{ "value":"MSFT", "data":30.82, "shares":100 },
{ "value":"INTC", "data":24.83, "shares":100 },
{ "value":"QCOM", "data":61.46, "shares":100 },
{ "value":"ORCL", "data":31.65, "shares":100 },
{ "value":"HPQ", "data":16.88, "shares":100 },
{ "value":"CRM", "data":145.18, "shares":100 }
];
var kendogridds = new kendo.data.DataSource({data:entries,
schema:{
model:{
fields:{
value:{ type:"string" },
data:{ type:"string" }
}
}
}})
$('#myupdategrid').kendoGrid({
dataSource:kendogridds,
height: 100,
columns:[{field:'data',title:'Data'},
{field:'value',title:'Value'}],
dataBound: onDataBound,
dataBinding: onDataBinding
})
我可以看到正在创建网格,但所有单元格都是空的。任何线索为什么?