mouse wheel changes cell value

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    11 posts
    Member since:
    Mar 2014

    Posted 27 Sep Link to this post

    When editing a cell, moving the mouse wheel changes the value of the cell. How can I stop this behavior?
  2. Eyup
    Eyup avatar
    2941 posts

    Posted 30 Sep Link to this post

    Hello Daniel,

    The increment settings are enabled by default for better convenience with operating with the input control. You can access the control and disable the arrow navigation of the numbox itself using the approach demonstrated in the following section:

    In this case it will be something like this:
    Copy Code
    Copy Code
    Copy Code
    protected void RadGrid1_PreRender(object sender, EventArgs e)
        GridTableView masterTable = ((RadGrid)sender).MasterTableView;
        GridNumericColumnEditor editor = masterTable.GetBatchColumnEditor("Freight") as GridNumericColumnEditor;
        RadNumericTextBox numBox = editor.NumericTextBox;
        numBox.IncrementSettings.InterceptArrowKeys = false;
        numBox.IncrementSettings.InterceptMouseWheel = false;

    An alternative approach is the following:
    Copy Code
    Copy Code
    Copy Code
    <telerik:GridNumericColumn ... ColumnEditorID="NumBoxEditor1">

    Editor definition on the same page with the RadGrid:
    Copy Code
    Copy Code
    Copy Code
    <telerik:GridNumericColumnEditor runat="server" ID="NumBoxEditor1">
        <NumericTextBox runat="server">
            <IncrementSettings InterceptArrowKeys="false" InterceptMouseWheel="false" />

    I hope this will prove helpful.

    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top