PDA

View Full Version : Scrolling grid using Mouse wheel


bajrang
02-15-2007, 12:20 AM
Add "onmousewheeldelta" event to grid


<grid>



<method event="onmousewheeldelta" reference="LzKeys" args="k">
if(this.getAttribute('visible')){
if(k == -3){
this._scrx.page(1);
}else if(k == 3){
this._scrx.page(-1);
}
}
</method>


</grid>

hardik
02-15-2007, 04:12 AM
Hello bajrang,


try this thread, with mousewheel scroll help

http://forum.openlaszlo.org/showthread.php?s=&threadid=3711&highlight=mousewheel

Hope this helps,
Thanks,
Hardik

hipik
07-10-2007, 04:02 AM
Bajrang posted the solution and it's working fine ;)
Cheers!

and here is an improvement
http://forum.openlaszlo.org/showthread.php?t=508