开发者

jqgrid in asp.net using json datatype

i binded the jqgrid using 'data type=local' its working fine but n开发者_如何学Goow i want to bind jqgrid using JSON datatype. can anybody help me.


you'd have to create a web service to return JSON data. And, the JSON data you send back for jqgrid to consume has to have a particular structure. Please look at the link mentioned by Dyson. I think the last few lines says it all...of course you'd have to convert php to your asp.net language of choice.


Look at the example here. Click on the Loading Data -> JSON menu item

You will see:

url:'server.php?q=2', 
datatype: "json", 

The url is the page that will serve up the JSON, in this case with a parameter 'q=2' telling the page what JSON to fetch.

You can also point the url at a webservice that would return the JSON.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜