2011-05-11 40 views

回答

0

您可以與getCellgetRowData方法一起使用onSelectRow事件:

$('#grid').jqGrid({ 
    .... 
    onSelectRow: function(id) { 
     var amount = $('#grid').jqGrid('getCell', id, 'Amount'); 
     $('#id_of_some_text_box').val(amount); 
    }, 
    .... 
}); 
相關問題