Categories | Question details Back To List | ||
Scroll by entire row Is it possible to set up dhtmlx grid to scroll by a predetermined number of pixels ? Or to setup scroller in such a way so that when you click on up/down buttons grid will scroll up/down by exactly 1 row ? Answer posted by Support on Mar 17, 2008 03:49 There is no such built in functionality. The scrollbar is a native browser control and works without "align to row" behavior. Basically it possible to catch the onScroll event and made some correction to scrolling state mygrid.attachEvent("onScroll",function(x,y){ window.setTimeout(function(){ mygrid.objBox.scrollTop=Math.round(y/20)*20; //align to row },1); }); |