jqgrid getRowData returns null

前端 未结 1 1437
别那么骄傲
别那么骄傲 2021-02-06 08:30

I have the code below:

$buttonoptions = array(\"#pager\", 
    array(
        \"caption\" => \"Select Product\",
        \"onClickButton\" => \"js: functio         


        
相关标签:
1条回答
  • 2021-02-06 08:57

    You use getRowData in a wrong way. Try

    var kelr = jQuery('#grid').jqGrid('getCell', selr, 'product_cat_id');
    

    or

    var rowData = jQuery('#grid').jqGrid('getRowData', selr);    
    var kelr = rowData.product_cat_id;
    

    instead of

    var kelr = jQuery('#grid').jqGrid('getRowData','product_cat_id');
    
    0 讨论(0)
提交回复
热议问题