How to get the displayed data of KendoGrid in json format?

后端 未结 5 1950
北海茫月
北海茫月 2020-12-28 13:45

I have a kendoGrid and i would like to get the JSON out of it after filtering and sorting how do I achieve this?

something like the followi

5条回答
  •  长情又很酷
    2020-12-28 14:04

    I think you're looking for

    var displayedData = $("#YourGrid").data().kendoGrid.dataSource.view()
    

    Then stringify it as follows:

    var displayedDataAsJSON = JSON.stringify(displayedData);
    

    Hope this helps!

提交回复
热议问题