EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: wade.zhu on March 13, 2014, 11:01:21 PM



Title: how can i control the datagrid scollbar to special row
Post by: wade.zhu 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?




Title: Re: how can i control the datagrid scollbar to special row
Post by: stworthy on March 14, 2014, 11:13:01 PM
Please call 'scrollTo' method to scroll to the specified row.
Code:
$('#dg').datagrid('scrollTo', index);