grid.setSelectionModel(new Slick.RowSelectionModel());
//grid.init();
dataView1.beginUpdate();
dataView1.setItems(jsonObj);
dataView1.setFilter(myFilter);
dataView1.endUpdate();
// if you don't want the items that are not visible (due to being filtered out
// or being on a different page) to stay selected, pass 'false' to the second arg
dataView1.syncGridSelection(grid, false);
//$("#gridContainer").resizable();
//the event bellowj just triggers keyup on the filter text box so that the grid gets populated...never delete this statement...
$("#txtSearch").triggerHandler("keyup");
The issue with this example is the sort works perfectly for some columns example "CIN" column, but works pretty bad for some columns like "id" and "JWEEKAVG".
Hi, Below is my code for the grid var options = { editable: true, enableCellNavigation: true, multiColumnSort: true };
finally I have
The issue with this example is the sort works perfectly for some columns example "CIN" column, but works pretty bad for some columns like "id" and "JWEEKAVG".
Check the below images .
before sort on id: after sorting on id field: