How to get a jqGrid cell value when editing

前端 未结 23 2518
日久生厌
日久生厌 2020-11-27 17:43

How to get a jqGrid cell value when in-line editing (getcell and getRowData returns the cell content and not the actuall value of the input element).

23条回答
  •  时光取名叫无心
    2020-11-27 18:32

    After many hours grief I found this to be the simplest solution. Call this before fetching the row data:

    $('#yourgrid').jqGrid("editCell", 0, 0, false);
    

    It will save any current edit and will not throw if there are no rows in the grid.

提交回复
热议问题