Validation event not firing after Edit

4 posts, 1 answers
  1. Brad
    Brad avatar
    110 posts
    Member since:
    Jun 2004

    Posted 11 Jul 2008 Link to this post


    I was expecting the Validating or Validation event to fire after committing an edit of a node. Currently calling radTreeView BeginEdit() function to initiate editing and commit changes using Enter.

    I need to validate the name and text of the edited tree node before accepting the change.  Is there something I need to enable for the event to fire?  Or should I be using a different event?

  2. Answer
    Jordan avatar
    547 posts

    Posted 14 Jul 2008 Link to this post

    Hi Brad,

    The event that you are looking for is ValueValidating. Here is a code that examplifies its usage:
    void radTreeView1_ValueValidating(object sender, CancelEventArgs e) 
                string value = this.radTreeView1.ActiveEditor.Value as string
                if (value.Contains("a")) 
                    e.Cancel = true

    Don't hesitate to contact us if you have further questions.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
  4. Dragoljub
    Dragoljub avatar
    26 posts
    Member since:
    Feb 2008

    Posted 20 Mar 2009 Link to this post


    I have a question: Why don't you at least fix the documentation then?

    Let me give you a scenario how things happen:
    1) something does not work as expected
    2) consult documentation
    3) test what documentation says
    4) something still does not work
    5) consult forum
    6a) if you're lucky someone else had the same problem before you, in which case you get the solution
    6b) otherwise, you ask the question in the forum, you get the answer a few days later (if it was Friday, then you get the answer on Tuesday/Wednesday next week)

    Telerik, why do things need to be so complicated?
  5. Jordan
    Jordan avatar
    547 posts

    Posted 23 Mar 2009 Link to this post

    Hello Dragoljub,

    Thank you for pointing this out. Your feedback is very valuable to us. Documentation has already been fixed, but the change will become visible in a couple of weeks. 

    Best wishes,
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top