我是flexigrid的新手.任何人都可以让我知道如何获取每列所选行的值.
如何获取每个列名称(reportName和reportDescription)?因为我推送//将所有数据推送到数组中,如下所述.
我使用下面的代码来获取选定的行.但它返回null.你可以帮我一下吗?
//Column. <br/>
colModel: [
{ display: 'WidgetID', name: 'WidgetID', width: 50, sortable: true, align: 'left', hide: true },
{ display: 'Widget Name', name: 'WidgetName', width: 170, sortable: true, align: 'left' },
{ display: 'IsClientReport', name: 'IsClientReport', width: 50, sortable: false, align: 'left', hide: true },
{ display: 'ClientReportID', name: 'ClientReportID', width: 50, sortable: false, align: 'left', hide: true },
{ display: 'ReportType', name: 'ReportType', width: 280, sortable: true, align: 'left' }
],
$('#grid01').click(function(event){
$('.trSelected', this).each( function(){
console.log( …
Run Code Online (Sandbox Code Playgroud) flexigrid ×1