When I select a row after sorting the grid I get the ‘old’ rowindex.
$(“#jqxgrid”).on(‘rowselect’, function (event) {
var selectedrowindex = event.args.rowindex;
var selectedrowindexes = $(“#jqxgrid”).jqxGrid(‘selectedrowindexes’);
});
$(“#jqxgrid”).jqxGrid({
theme: theme,
localization: localizationobj,
width: function () {
width = ($(‘#mainSplitter’).width() – 2) / mainSplitter * 100 + ‘%’;
},
height: function () {
height = (($(‘#panel1’).height() – $(‘#jqxmenu’).height()) – 4) / $(‘#panel1’).height() * 100 + ‘%’;
return height
},
source: dataAdapter,
rowsheight: 35,
sortable: true,
altrows: true,
selectionmode: ‘multiplerows’,
ready: function () {
$(“#jqxgrid”).jqxGrid(‘hidecolumn’, ‘A);
},
columns: [
{ text: ‘A’, dataField: ‘A’, editable: false, pinned: true, width: 80 },
{ text: ‘B’, dataField: ‘B’, editable: false, width: 80 },
{ text: ‘C’, dataField: ‘C’, filtercondition:’contains’, editable: false, width: 80 },
{ text: ‘D’, dataField: ‘D’, editable: false, width: 80 }
]
});
How do I get the new indexes?