Open lzuliuyun opened 7 years ago
I use the pager plugin, and want to select row after initializing the grid.
when I select the row in the second page, it does't work。
example code: https://github.com/mleibman/SlickGrid/blob/gh-pages/examples/example4-model.html
I test by this code.
$("#btnSelectRows").click(function () { if (!Slick.GlobalEditorLock.commitCurrentEdit()) { return; } var rows = []; // for (var i = 0; i < 10 && i < dataView.getLength(); i++) { // rows.push(i); // } grid.setSelectedRows([30,31]); });
so how can I solve this bug?
I find the solution, after initializing gird, then select the row.
I use the pager plugin, and want to select row after initializing the grid.
when I select the row in the second page, it does't work。
example code:
https://github.com/mleibman/SlickGrid/blob/gh-pages/examples/example4-model.html
I test by this code.
so how can I solve this bug?