How to get a jqGrid cell value when editing

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

    You can get it from the following way...!!

    var rowId =$("#list").jqGrid('getGridParam','selrow');  
    var rowData = jQuery("#list").getRowData(rowId);
    var colData = rowData['UserId'];   // perticuler Column name of jqgrid that you want to access
    

提交回复
热议问题