Javascript 剑道网格中的角度数据源
我正在使用剑道网格,我需要从controllerJavascript 剑道网格中的角度数据源,javascript,angularjs,kendo-grid,Javascript,Angularjs,Kendo Grid,我正在使用剑道网格,我需要从controllerNameOfController中定义的NameOfMethod读取数据 在代码之前是这样的: .DataSource(dataSource => dataSource .Ajax() .PageSize(10) .Read(read => read.Action("NameOfMethod", "NameOfController")) 我必须用angular替换这个代码 我试过这个: var data =
NameOfController
中定义的NameOfMethod
读取数据
在代码之前是这样的:
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(10)
.Read(read => read.Action("NameOfMethod", "NameOfController"))
我必须用angular替换这个代码
我试过这个:
var data = new kendo.data.DataSource({
transport: {
read:
},
pageSize: 10
});
在中阅读:
如何替换以前的代码(
非常感谢各位!!!!您可能会通过以下方式逃脱处罚:
read : "/NameOfController/NameOfMethod"
更多信息请点击此处:
read : "/NameOfController/NameOfMethod"