How to change a row's particular cell value in jqgrid

前端 未结 3 1626
一整个雨季
一整个雨季 2020-12-14 01:18

I want to change a particular rows\'s cell value, I have the row Id. and I have tried using the following. But it doesnt work.

$(\"#my-jqgrid-table\").jqGrid         


        
3条回答
  •  一生所求
    2020-12-14 01:55

    You can use getRowData and setRowData methods to achieve this (they are working directly with data array):

    var rowData = $('#my-jqgrid-table').jqGrid('getRowData', rowId);
    rowData.Currency = '12321';
    $('#my-jqgrid-table').jqGrid('setRowData', rowId, rowData);
    

提交回复
热议问题