Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by MB on Dec 03, 2008 14:12
open dhtmlx forum
DHTMLGRID

Hi
I have mutliple dhtmlgrid on a page and each of them has the (L-R)scrollbar. Is there any way to control grids scrollbar with one of them so that when I scroll bar one it scroll all of them. Thanks in advance.

Regards,
MB
Answer posted by Support on Dec 04, 2008 02:48
You can use onScroll event of grid as

master_grid.attachEvent("onScroll",function(x,y){
          slave_grid.objBox.scrollLeft=x;
          slave_grid.doOnScroll();
});