Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ljb on Mar 05, 2009 02:44
open dhtmlx forum
How to set : The Vertical scroll bar move with the cursor in grid

Hi, Team

I want to set the Vertical scroll bar move with the cursor in grid,

But when the cursor in grid move around the screen height, the Vertical scroll bar doesn't move with.

Cound you tell me how to set ?

 

Thanks

ljb

Best Wishes!

2009/03/05

Answer posted by Support on Mar 05, 2009 04:13
Which version of grid you are using? In all latest versions it is default behavior. 
You can try to use 

grid.attachEvent("onRowSelect",function(id,ind){
    grid.showRow(id);
})

Also, please be sure that you have unique IDs for each row
Answer posted by ljb on Mar 05, 2009 22:25

First,Thank you for your answer.

Second,the version which I am using is v.1.6.

Maybe, the question which I asked is not in right descripton. sorry

The question which I meet with is :

 When I call the method:mygrid.selectCell(i, j) , I want the Vertical scrool bar move with it(move to somewhere, operator can see the selected cell).

Is there has any event can catch it ?  Cound you tell me some advice?

Thanks again!

Best wishes!

ljb

2009/03/06

 

Answer posted by Support on Mar 06, 2009 02:43
One of early build of grid 1.6 really has similar issue ( auto-selection not works correctly )
Fixed js file for grid 1.6 sent by email
Answer posted by ljb on Mar 08, 2009 22:44

The grid 1.6 has received. Thanks

The problem has resolved.

Thank you very much!

Best wishes!

ljb

2009/03/09