EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 08, 2024, 06:20:19 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
Bug Report
>
scrollTo method on datagrid with scrollview does not work
Pages: [
1
]
« previous
next »
Print
Author
Topic: scrollTo method on datagrid with scrollview does not work (Read 14606 times)
phunksta
Jr. Member
Posts: 54
scrollTo method on datagrid with scrollview does not work
«
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
Logged
Opan Mustopah
Full Member
Posts: 164
Indonesia
Re: scrollTo method on datagrid with scrollview does not work
«
Reply #1 on:
March 12, 2015, 10:20:33 AM »
same problem here. hope it can be done
Logged
-- Bajak Otak --
*** Sorry for my bad english :3 ***
--JeasyUI version 1.4--
jarry
Administrator
Hero Member
Posts: 2262
Re: scrollTo method on datagrid with scrollview does not work
«
Reply #2 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.
Logged
Opan Mustopah
Full Member
Posts: 164
Indonesia
Re: scrollTo method on datagrid with scrollview does not work
«
Reply #3 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
Logged
-- Bajak Otak --
*** Sorry for my bad english :3 ***
--JeasyUI version 1.4--
jarry
Administrator
Hero Member
Posts: 2262
Re: scrollTo method on datagrid with scrollview does not work
«
Reply #4 on:
March 12, 2015, 11:27:53 PM »
Please refer to this example
http://jsfiddle.net/f80nfapq/
Logged
Opan Mustopah
Full Member
Posts: 164
Indonesia
Re: scrollTo method on datagrid with scrollview does not work
«
Reply #5 on:
March 13, 2015, 01:58:30 AM »
thanks jarry it's works now
Logged
-- Bajak Otak --
*** Sorry for my bad english :3 ***
--JeasyUI version 1.4--
phunksta
Jr. Member
Posts: 54
Re: scrollTo method on datagrid with scrollview does not work
«
Reply #6 on:
March 13, 2015, 02:19:27 AM »
Yet again you guys deliver! Thanks that has solved my problem!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...