I am new to flexigrid. can someone please let me know how to get the selected row for each column value.?
How to get each column name (reportName and reportDescription)? because I push // all the data into an array as below.
I use the code below to get the selected rows. But it returns null. could you help me?
//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( ' rowId: ' + $(this).attr('id').substr(3) + ' IsClientReport: ' + $('td[abbr="IsClientReport"] >div', this).html() + ' sign: ' + $('td[abbr="WidgetID"] >div', this).html() + ' ReportType: ' + $('td[abbr="ReportType"] >div', this).html() ); }); });
Thank you Pon Kumar Pandian