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

前端 未结 3 1631
一整个雨季
一整个雨季 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:56

    Here is the correct way according to the documentation :-

    $("#my-jqgrid-table").jqGrid("setCell", rowid, "Currency", "New value");
    

    Check that all variables are correct as what you did seems correct. loadOnce has no impact, you must have a mistake elsewhere.

    • Are you sure the row name is Currency (not the index)
    • Check the variable rowId, should it be rowid or rowID

提交回复
热议问题