How to get a jqGrid cell value when editing

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

    You can use getCol to get the column values as an array then index into it by the row you are interested in.

    var col = $('#grid').jqGrid('getCol', 'Sales', false);
    
    var val = col[row];
    

提交回复
热议问题