Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Shurik on Feb 17, 2009 06:21
open dhtmlx forum
Prevent scrolling to selected column

Hi!
In dhtmlxGrid I have horizontal scroll. When clicking on cell that partially displayed the Grid is scrolled to selected column.

How can I prevent it?

dhtmlxGrid 2.0  (dhtmlxSuite - Enterprise License)

Если я написал не очень понятно, могу объяснить на русском.
Answer posted by Support on Feb 18, 2009 08:58
Behavior can't be changed through API, but you can override related method of grid in next way


grid.moveToVisibleA=grid.moveToVisible;
grid.moveToVisible=function(a){
    return this.moveToVisibleA(a,true);
}

It will block horizontal auto-scrolling in grid
Answer posted by Shurik on Feb 19, 2009 01:12
Thanks very much for your help!

It works perfect!