jqgrid 選中某行 而 不執行select


jqgrid 選中某行 而 不執行select
寫法1: jQuery("#gridTime").jqGrid('setSelection', 1,false);
寫法2:$("#gridTime").setSelection(1, false);

jqgrid 選中某行 而 執行select
寫法1: jQuery("#gridTime").jqGrid('setSelection', 1);
寫法2:$("#gridTime").setSelection(1);

jqgrid獲取行號
$("#gridTime").jqGrid("getGridParam", "selrow");

jqgrid獲取某個列的行號,並選中此行
var num = $("td:contains('" + code + "')").parent().find("td").eq(0).html();
jQuery("#gridTable").jqGrid('setSelection', parseInt(num));


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM