How to get a jqGrid selected row cells value

后端 未结 6 648
忘掉有多难
忘掉有多难 2020-12-08 13:40

Does anyone know how to get the cells value of the selected row of JQGrid ? i m using mvc with JQGrid, i want to access the value of the hidden column of the selected row ?<

6条回答
  •  天命终不由人
    2020-12-08 14:12

    yo have to declarate de vars...

    var selectedRowId = $('#list').jqGrid ('getGridParam', 'selrow');
    var columnName = $('#list').jqGrid('getCell', selectedRowId, 'columnName');
    

    var nombre_img_articulo = $('#list').jqGrid('getCell', selectedRowId, 'img_articulo');

提交回复
热议问题