Validate On exception without crashing

2 posts, 0 answers
  1. Minh
    Minh avatar
    43 posts
    Member since:
    May 2014

    Posted 11 Sep 2015 Link to this post

    My error prompt works well, when it's outside of the range it prompts the error message. If there a way to have it prompt the message and not stop code from running?


    public string Nint
                    return _nint;
                    if(double.Parse(value) > (double) Product.MaximumRate || (double.Parse(value) < (double) Product.MinimumRate))
                        NintErrorEnabled = true;
                        throw new ValidationException();



    "throw new ValidationException();" stops the code right in it's track. Could I still display the error message without stopping the code? 

  2. Martin
    Martin avatar
    1048 posts

    Posted 16 Sep 2015 Link to this post

    Hello Minh,

    You can take a look at the Throwing Validation Exceptions help article that explains how to handle the excpetions validation in the masked input suite. I hope this article is helpful.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top