开发者

dojo grid source

开发者 https://www.devze.com 2022-12-20 20:27 出处:网络
I want to use dojo grid with asp.net mvc but i don\'t know how the server side function must look like(parameters and return json).

I want to use dojo grid with asp.net mvc but i don't know how the server side function must look like(parameters and return json). All th开发者_运维技巧e samples i've seen use a file as a source for grid. Any tips?


You can use dojox.data.QueryReadStore for you grid. The server-side implementation should handle parameters: sort, start, count and filters. And result json should look like this:

{ numRows: "100", identifier: "id", items: [ { id: 1, value: "someValue" },...]}

You can find more information about QueryReadStore and link to basic server side implementation on PHP here: QueryReadStore

0

精彩评论

暂无评论...
验证码 换一张
取 消