Rangevalidation GridNumericColumn in EditMode="Batch"

5 posts, 0 answers
  1. Sébastien
    Sébastien avatar
    18 posts
    Member since:
    Apr 2016

    Posted 26 Jul 2016 Link to this post


    Using the RadGrid in Batch Editing mode and the EditType is set to row.

    What is the best way to implement a RangeValidation for a GridNumericColumn ? I 

    I just want the user having to enter a value between 1 and 999. If this is not the case, a small message indicates the error.

    Thanks in advance to show me the way :)


  2. Konstantin Dikov
    Konstantin Dikov avatar
    2406 posts

    Posted 29 Jul 2016 Link to this post


    The easiest way for achieving the desired result is by setting the MinValue and MaxValue properties of the GridNumericColumn, which will automatically enable the range validation:
        <telerik:GridNumericColumn DataField="Age" MinValue="0" MaxValue="100"></telerik:GridNumericColumn>

    As for displaying error message, this could be achieved with custom validator control. You can refer to the following demo, where you will see how RequiredFieldValidator is used, but in your case you will need CustomValidator:

    Best Regards,
    Konstantin Dikov
    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. Sébastien
    Sébastien avatar
    18 posts
    Member since:
    Apr 2016

    Posted 29 Jul 2016 in reply to Konstantin Dikov Link to this post


    Thank you for your reply.

    Ok, I will do so.

    Best Regards,


  4. Jimmy
    Jimmy avatar
    7 posts
    Member since:
    May 2017

    Posted 06 Nov 2018 Link to this post


    In the sample you posted above a red exclamation point appears briefly when a non-numeric character is entered.  We have been trying to either get that to not appear or to display something useful like "You have entered an invalid character" and stay up on the screen.  Are either of these possible?



  5. Tsvetomir
    Tsvetomir avatar
    147 posts

    Posted 09 Nov 2018 Link to this post

    Hi Jimmy,

    I researched the case and for your convenience and I created a KB article on the matter. You can find it here: 

    Use a ToolTip as a Feedback for Input Controls as a Validation Message

    The article covers in details how to create and show a tooltip using the RadToolTipManager.

    Let me know if you need further clarifications.

    Kind regards,
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top