jqgrid备忘

GetthejqGridcolModel

jQuery("#mygrid").jqGrid('getGridParam','colModel');

getGridParam能接受哪些参数,参见http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options

varpropsName=jQuery("#mygrid").jqGrid('getColProp','loginName');可得到loginName这列的colModel,alert(propsName.hidden);可显示它的hidden属性

vargrid=$("#list");

varpropsName=grid.jqGrid('getColProp','Name');

varpropsNote=grid.jqGrid('getColProp','Note');

alert("'Name'hassortable="+propsName.sortable+

"\n'Note'hassortable="+propsNote.sortable);

相关推荐