Tuesday, 15 September 2015

java - jqgrid search with loadonce -



java - jqgrid search with loadonce -

i'm having problem jqgrid searching. code works add, edit, delete except searching. 1 time load info shown fine, if click find button, never anything. have been looking everywhere can't find what's wrong. if utilize loadonce : true searching works having problem paging , sorting grid. wanna create work paging, sorting, , searching.

here's code.

$("#material_list").jqgrid({ url:"my url", editurl:"my url", mtype:"post", caption:"list", datatype:"json", height:"auto", jsonreader : { root: "rows", page: "page", total: "total", records: "records", repeatitems: true }, rownum:10, rowlist:[5,10,15], colnames:["prod_code","prod_name","comp_code","unit","standard","useflag"], colmodel:[ {name:"prod_code", index:"prod_code", editable:true}, {name:"prod_name", index:"prod_name", editable:true}, {name:"comp_code", index:"comp_code", editable:true}, {name:"unit", index:"unit", editable:true}, {name:"standard", index:"standard", editable:true}, {name:"useflag", index:"useflag", editable:true} ], pager:"#pager", autowidth:true, viewrecords:true, //loadonce:true, }); $("#material_list").jqgrid( "navgrid", "#pager", {search:true, edit:true, add:true, del:true}, {closeafteredit:true, reloadaftersubmit:true}, {closeafteradd:true, reloadaftersubmit:true}, {reloadaftersubmit:true} );

java json jqgrid

No comments:

Post a Comment