Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Richard White on Jan 23, 2008 11:54
open dhtmlx forum
tree onselect moves all the way to the right!!!

Hi

we asked you this questions once before, you gave us the solution, and in your new version you have not updated this bug as the problem is now arising again and we do not have the code you previously sent us to fix it.

this problem occurs as we have a tree grid set up with a width of 1000px but the div that holds it is set to 300px so they can scroll horizontally if they want. however when a row is selected the grid automatically scrolls all the way to the right hand side. we want it to stay exactly where it is

we would appreciate this code again and would also appreciate you updating your file so that when you send us an update we havent got to keep changing this. we cant imagine that this is a deliberate feature as we cant see any reason why anyone would want this functionality more often than the one we require

thanks very much

Answer posted by Support on Jan 24, 2008 06:50
>>we would appreciate this code again

In dhtmlxGrid.js  please locate next line ( line 1175 in latest js  )
this.moveToVisible = function(cell_obj,onlyVScroll){
and replace it with
this.moveToVisible = function(cell_obj,onlyVScroll){
                onlyVScroll=true;

>>
updating your file so that when you send us an update we havent got to keep changing this
The code above is not the final fix, just workaround - please contact us directly at support@dhtmlx.com and provide your ref. number - we will send you an updated file with full fix.