jqGrid stuck on loading???

I am trying to use the JQuery plugin [jqGrid][1] with an asp .net mvc app. I am passing the grid a JSON object in the following [format][2] as in the jqGrid documentation: { "total":1, "page":1, "records":10, "rows": [{ "i":1,"cell":["foo","bar"]}, {"i":2,"cell":["foo1","barr"]}, {"i":3,"cell":["foo2","barrr"]}] } and the jqGrid is setup: jQuery("#searchResults").jqGrid({ url: '/Customer/SearchResults/', datatype: 'json', mtype: 'GET', colNames: ['Surname', 'Forename'], colModel: [ { name: 'Surname', index: 'Surname', width: 200, align: 'left' }, { name: 'Forename', index: 'Forename', width: 200, align: 'left'}], pager: jQuery('#pager'), rowNum: 10, rowList: [5, 10, 20, 50], sortname: 'Id', sortorder: "desc", viewrecords: true, imgpath: '/scripts/themes/coffee/images', caption: 'My first grid' }); Its hitting my action but the grid is stuck on loading, any ideas what I am doing wrong?? Thanks [1]: http://www.trirand.com/blog/ [2]: http://www.secondpersonplural.ca/jqgriddocs/_2eb0f6jhe.htm

以上就是jqGrid stuck on loading???的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏