EasyUI Forum
September 15, 2025, 03:19:02 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how can i control the datagrid scollbar to special row  (Read 7152 times)
wade.zhu
Newbie
*
Posts: 27


View Profile
« on: March 13, 2014, 11:01:21 PM »

i have 2 datagrids, one is in the center of the layout, another is in the south
they have the same data.
is it possible to 'scrollTo' a special row on datagrid#2, when i select a row on datagrid#1?


Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 14, 2014, 11:13:01 PM »

Please call 'scrollTo' method to scroll to the specified row.
Code:
$('#dg').datagrid('scrollTo', index);
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!