How to get a jqGrid cell value when editing

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

    As you stated, according to the jqGrid documentation for getCell and getRowData:

    Do not use this method when you editing the row or cell. This will return the cell content and not the actual value of the input element

    Since neither of these methods will return your data directly, you would have to use them to return the cell content itself and then parse it, perhaps using jQuery. It would be nice if a future version of jqGrid could provide a means to do some of this parsing itself, and/or provide an API to make it more straightforward. But on the other hand is this really a use case that comes up that often?

    Alternatively, if you can explain your original problem in more detail there may be other options.

提交回复
热议问题