easyui datagrid編輯時編輯框自動獲取焦點


onDblClickCell:function(rowIndex, field, val){//雙擊單元格監聽器 
     $(this).datagrid('beginEdit',rowIndex);//開啟編輯
     var ed = $(this).datagrid('getEditor', {index:rowIndex,field:field});//獲取當前編輯器
     $(ed.target).focus();//獲取焦點
}

 


免責聲明!

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



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