How to get a jqGrid cell value when editing

前端 未结 23 2640
日久生厌
日久生厌 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:30

    In order to get the cell value when in-line editing you need to capture this event(or another similar event, check documentation):

    beforeSaveCell: function (rowid, celname, value, iRow, iCol) { }

    In the value parameter you have the 'value' of the cell that was currently edited.

    To get the the rest of the values in the row use getRowData()

    I lost a lot of time with this, hope this helps.

提交回复
热议问题