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>
In one of the previous releases this problem was fixed and I didn't have to use this script anymore. However, in 2011.1 this problem has reappeared.
Could you kindly have a look and see what is going on. I may have missed something but would like to know what.
Correction:
if (this._container.scrollHeight <= this._container.clientHeight)