Title: datagrid +scrollview:getting a specific row after sort Post by: korenanzo on May 10, 2016, 12:00:22 AM Hi,
I am using data grid with scrollview, filter and cell editing plugins. I have a lot of rows, so I set scrollview and pageSize= 500 : it works well, I can load locally ten thousand rows really fast. I have a specific column as absolute identifier, so I set idField. when I sort by a column, I'd like to highlight (select) a specific row: I can't use the "index" param, because it is relative to the current page so I used this system: in OnSortColumn event: Code: // count the number of pages problem is that if there is more than 1 page , I get the correct page, nut the index is always 499 Is it a bug or I did something wrong? Thanks, RIc Title: Re: datagrid +scrollview:getting a specific row after sort Post by: jarry on May 10, 2016, 05:18:37 PM You should wait the page to be loaded successfully before calling the 'getRowIndex' method. Be sure to download the corresponding files from http://www.jeasyui.com/extension/datagridview.php and http://www.jeasyui.com/extension/datagrid_filter.php
Code: onSortColumn: function(){ |