jqgrid的可编辑列,单击时会创建一个textbox, 我现在想动态的触发这个事件.
知道rowid和columns index, 怎么来触发这个单元格的单击事件呢? 让textbox出现而且获取焦点..

解决方案 »

  1.   

    自动触发么? 自己把textbox创建出来,然后给textbox加上focus
      

  2.   

    自己解决了,不过还是多谢了.
    jqGrid中本身有个方法editCell
    参数:iRow, iCol, edit(iRow,是第几行,和rowid是不一样的)
    描述:edit a cell with the row index iRow( do not mix with rowid) in index column iCol. If the edit is set to false the cell is just selected and not edited. If set to true the cell is selected and edited.