1

kendo-ui グリッドを使用してサーバー側のページネーションを実装しようとしています。これは私のデータソース構成です。

"dataSource": {
            "serverPaging": true,
            "pageSize": 10,
            "schema":{
              "data": "data",
              "total": "total"
            },
            "transport": {
              "read": {
                "url": "http://localhost:9001/category/widget/kendoGridTest/trigger/data",
                "dataType": "json",
                "type": "GET"
              }
            }
 }

実行すると、サーバー要求を継続的に送信しますが、何も起こりません。送信要求は正しく、期待される応答も得られます。グリッドでのデータ バインディングは発生しません。

ここで何がうまくいかなかったのか誰にも分かりますか??

編集:サーバーの応答

{
    "data": [
        {
            "CustomerID": "ALFKI",
            "CompanyName": "Alfreds Futterkiste",
            "ContactName": "Maria Anders",
            "ContactTitle": "Sales Representative",
            "Address": "Obere Str. 57",
            "City": "Berlin"
        },
        {
            "CustomerID": "YUI",
            "CompanyName": "Alfreds Futterkiste",
            "ContactName": "Maria Anders",
            "ContactTitle": "Sales Representative",
            "Address": "Obere Str. 57",
            "City": "Berlin"
        },
        {
            "CustomerID": "PKY",
            "CompanyName": "Alfreds Futterkiste",
            "ContactName": "Maria Anders",
            "ContactTitle": "Sales Representative",
            "Address": "Obere Str. 57",
            "City": "Berlin"
        },
        {
            "CustomerID": "PNY",
            "CompanyName": "Alfreds Futterkiste",
            "ContactName": "Maria Anders",
            "ContactTitle": "Sales Representative",
            "Address": "Obere Str. 57",
            "City": "Berlin"
        },
        {
            "CustomerID": "WSI",
            "CompanyName": "Alfreds Futterkiste",
            "ContactName": "Maria Anders",
            "ContactTitle": "Sales Representative",
            "Address": "Obere Str. 57",
            "City": "Berlin"
        },
        {
            "CustomerID": "FGH",
            "CompanyName": "Alfreds Futterkiste",
            "ContactName": "Maria Anders",
            "ContactTitle": "Sales Representative",
            "Address": "Obere Str. 57",
            "City": "Berlin"
        },
        {
            "CustomerID": "NMV",
            "CompanyName": "Alfreds Futterkiste",
            "ContactName": "Maria Anders",
            "ContactTitle": "Sales Representative",
            "Address": "Obere Str. 57",
            "City": "Berlin"
        }
    ],
    "total": 7
}
4

0 に答える 0