Textbox Validating before select tab

2 posts, 0 answers
  1. Emily Fong
    Emily Fong avatar
    27 posts
    Member since:
    Sep 2012

    Posted 20 Apr 2011 Link to this post

    I have a pageview with two pages.  Each page have serveral textbox.  In the textbox_Validating, I will check the input value and set the e.cancel = true if validating fail.  The cursor will stay in the textbox if the validation fail.
    However, if I input invalid value in the textbox and click another tab immedicately, the cursor will go to that new page instead of staying in the textbox.
    So, how should I handle it? Thanks!
  2. Ivan Petrov
    Ivan Petrov avatar
    718 posts

    Posted 22 Apr 2011 Link to this post

    Hello Emily,

    Thank you for writing.

    You can also cancel the page changing of the RadPageView in the PageChanging event. I have attached a sample project where I try to reproduce your scenario.

    I hope this will be useful to you. If you have further questions, I would be glad to help.

    Kind regards,
    Ivan Petrov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top