Author Topic: I want to achieve two grid linkage rolling.  (Read 3100 times)

twoer

  • Newbie
  • *
  • Posts: 7
    • View Profile
I want to achieve two grid linkage rolling.
« on: March 16, 2015, 12:46:32 pm »


Code: [Select]
$pqScrollbar.on("pqscrollbardrag", function (event, ui)
{
       $(this).pqScrollBar('option', 'cur_pos', 100);
       
       var  curPos = $(this).pqScrollBar('option', 'cur_pos');     
 
});



get  cur_pos always 0 ?

set cur_pos  don't work ?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: I want to achieve two grid linkage rolling.
« Reply #1 on: March 16, 2015, 02:14:09 pm »
Please refer to these examples:

For virtualY mode: http://jsfiddle.net/zy9vqx41/3/

For non-virtualY mode: http://jsfiddle.net/nf0ofo5d/3/