EasyUI Forum

General Category => Bug Report => Topic started by: phunksta on March 12, 2015, 10:15:44 AM



Title: scrollTo method on datagrid with scrollview does not work
Post by: phunksta on March 12, 2015, 10:15:44 AM
Hi

The build in method 'scrollTo' for datagrid (_645) uses opts.finder.getTr() to locate the position, so the scroll action can be made.
When the scrollview extension is used, and 'scrollTo' is called with an off-page index, then this method does nothing.

Is it possible to have a new method for scrollview that is capable of navigating to and off-page index? In my case I only want to move to the selected row, but I guess if possible it should work for any index.

Can anyone help?

Thanks


Title: Re: scrollTo method on datagrid with scrollview does not work
Post by: Opan Mustopah on March 12, 2015, 10:20:33 AM
same problem here. hope it can be done


Title: Re: scrollTo method on datagrid with scrollview does not work
Post by: jarry on March 12, 2015, 08:34:50 PM
Please download the newest 'datagrid-scrollview.js' file from http://www.jeasyui.com/extension/datagridview.php, the 'gotoPage' and 'scrollTo' methods are available now.


Title: Re: scrollTo method on datagrid with scrollview does not work
Post by: Opan Mustopah on March 12, 2015, 09:21:38 PM
thank you very much jarry,

but when i try using that method:

Code:
$list_data.datagrid('scrollTo',80);

it won't scrolling into row 79.

i already include updated scrollview.js



Title: Re: scrollTo method on datagrid with scrollview does not work
Post by: jarry on March 12, 2015, 11:27:53 PM
Please refer to this example http://jsfiddle.net/f80nfapq/


Title: Re: scrollTo method on datagrid with scrollview does not work
Post by: Opan Mustopah on March 13, 2015, 01:58:30 AM
thanks jarry it's works now :D


Title: Re: scrollTo method on datagrid with scrollview does not work
Post by: phunksta on March 13, 2015, 02:19:27 AM
Yet again you guys deliver! Thanks that has solved my problem!  ;D