JQGrid methods

jQuery('#id').jqGrid('getGridParam','url'))            Get url

jQuery('#id').jqGrid('getGridParam','sortname')) Get Sort Name
jQuery('#id').jqGrid('getGridParam','sortorder')) Get Sort Order

jQuery('#id').jqGrid('getGridParam','selrow'))     Get Selected Row

jQuery("#id").jqGrid('getGridParam','selarrrow');Get Selected Rows
jQuery('#id').jqGrid('getGridParam','page'))       Get Current Page
jQuery('#id').jqGrid('getGridParam','rowNum'))  Get Number of Rows requested
jQuery('#id').jqGrid('getGridParam','datatype')) Get Data Type requested
jQuery('#id').jqGrid('getGridParam','records'))   Get number of records in Grid

jQuery("#id").jqGrid('getRowData',id);              Get the rowdata

jQuery("#id").jqGrid('delRowData',id);               delete the rowdata

jQuery("#id").jqGrid('setRowData',id,{});          update the rowdata

jQuery("#id").jqGrid('addRowData',id,{});         add the rowdata

jQuery("#id").jqGrid('setGridParam',{url:"url"}).trigger("reloadGrid")     set the url

jQuery("#id").jqGrid('setGridParam',{sortname:"",sortorder:""}).trigger("reloadGrid"); set the sort

jQuery("#id").jqGrid('setGridParam',{page:2}).trigger("reloadGrid"); set the page

jQuery("#id").jqGrid('setGridParam',{rowNum:15}).trigger("reloadGrid"); set the rownum

jQuery("#id").jqGrid('setCaption',"New Caption"); set the caption

jQuery("#id").jqGrid('sortGrid',"name",false); native sort

jQuery("#id").jqGrid('setSelection',"13"); 选中某一行

      

你可能感兴趣的:(method)