EasyUI Forum
May 13, 2024, 01:31:23 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Scrollview + pagination:true - Page number not change while scrolling  (Read 8450 times)
supun151515
Newbie
*
Posts: 5


View Profile Email
« on: December 17, 2015, 04:16:10 AM »

Hi,
With reference to http://www.jeasyui.com/extension/datagridview.php,

  • When I enable scrollview and pagination in same time, page number is not changing while scrolling.
  • Same happens When Opposite. While changing page numbers from the toolbar, scroller is not changing its position

BUG: Goto LastPage by clicking pagination toolbar, then scroll down. After end of last 50 rows(PageSize), grid wll sync data from second page again.

See the Fiddle below;
http://jsfiddle.net/ahbfaxd6/2/

I hope you can make interlink between scroller and pagination.
Please do not reply with "we can't use both options at the same time" Roll Eyes
I know you can find a better solution

Thank You,
Supun
« Last Edit: December 17, 2015, 04:17:57 AM by supun151515 » Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: December 17, 2015, 04:26:47 AM »

The scrollview is designed to scroll millions of data without pagination. If you want the pagination, please use the normal view instead.
Logged
supun151515
Newbie
*
Posts: 5


View Profile Email
« Reply #2 on: December 17, 2015, 05:20:57 AM »

Hi jarry,
I was expecting better solution than this answer.
Hope you will understand.

Thank you,
Supun
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #3 on: December 17, 2015, 06:10:04 AM »

Why do you want the pagination on the scrollview? If you want to scroll to the specified page. you can call 'gotoPage' method with the page number.
Code:
var page = 100;
$('#dg').datagrid('gotoPage', page);

If you want to scroll to the specified row, you can call 'scrollTo' method with the row index.
Code:
$('#dg').datagrid('scrollTo', 200);  // scroll to the row 200
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!