jqGrid: How to add a row in “cell editing” model?

前端 未结 1 1536
生来不讨喜
生来不讨喜 2021-01-25 23:27

I want to make the jqGrid as Excel style. If the jqGrid\'s rows are not enough, I can append a row on it. I have checked the wiki, the \"addRow\" method is only worked in \"Inli

1条回答
  •  悲&欢浪女
    2021-01-25 23:38

    I'm not sure that I understand you correctly. I don't understand what you mean under "Excel style". If you use cell editing mode and you need add a row you can use addRowData method. If required you can call editCell on the new row. You can use rowIndex property of DOM element of new added row to get the index of the row which you can use as the first parameter of editCell.

    0 讨论(0)
提交回复
热议问题