How can I refresh a grid data source using angular Kendo UI

前端 未结 3 1860
暖寄归人
暖寄归人 2021-02-05 08:20

I am combining Telerik Kendo grid with Angular using the Angular Kendo UI project.

I have the following markup:

3条回答
  •  滥情空心
    2021-02-05 09:01

    Your datasource must be a kendo object

    $scope.thingsOptions = {
            dataSource: new kendo.data.DataSource({
                        type: "json",
                        transport: {
                            read: "/OM/om/getAssets",
                            dataType: "json"
                        },
                        schema: {
                            model: {
                                id: "ProductID",
    

    then it is possible to call

    $scope.thingsOptions.dataSource.read();
    

提交回复
热议问题