jqGrid 是一个免费的Jquery 编写的插件,用joson进行数据传输;
一、下载jqGrid控件;
二、创建项目;
加入jqGrid,如图(选中部分)
三、创建数据实体,并构建josn数据
四、 页面中使用
结果图:
遇到问题:
1. 对象不支持“jqGrid”属性或方法
原因:jquery.jqGrid.js 里的 function jqGridInclude() 中 有个设置需要js的地方,我的目录结构与默认设置不符,改变即可。
收费么?
“Tony developed jqGrid and made it available for free as a way of making a contribution to the open-source community. In addition to the free jqGrid, Trirand also develops commercially-available, server-side grid components for PHP and ASP.NET. These components are not required for jqGrid to work, but they speed up the process of making complete grid solutions, and they save developers the effort of writing server-side code. ”
深入学习资源:
wiki: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jqgriddocs
jqgrid网站:http://www.trirand.com/blog/