Hello,
When there are many records in a grid and a scrollbar appears on the IE then if the mouse cursor is on the grid the mouse wheel does not work. If we move the mouse away from grid and somewhere else on the form then the mouse wheel works and we are able to scroll.
Could you please help.
Tahir
Hello Tahir,
Yes, you are correct. Sorry about that. I will make sure to correct it in the code.
In the meantime you can override the prototype method to bypass mousewheel handler. This script should be at the bottom of the page:
</form>
<script type="text/javascript">
$IG.WebDataGrid.prototype._oldOnMouseWheel = $IG.WebDataGrid.prototype._onMouseWheel;
$IG.WebDataGrid.prototype._onMouseWheel = function(evnt)
{
if (this._container.scrollWidth <= this._container.clientWidth)
return;
this._oldOnMouseWheel(evnt);
}
</script>
</body>
</html>
Correction:
if (this._container.scrollHeight <= this._container.clientHeight)
Hello Alex,
Thank you, that works just fine.
Regards,