This is a migrated thread and some comments may be shown as answers.

Textbox Validating before select tab

1 Answer 80 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Emily Fong
Top achievements
Rank 1
Emily Fong asked on 20 Apr 2011, 09:08 AM
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!

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 22 Apr 2011, 01:49 PM
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
Tags
PageView
Asked by
Emily Fong
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or