Tabcontrol validating

- This posting is provided "as is" with no warranties and confers no rights.

Hi Dennis, Based on my understanding, you want to validating all the controls on the tabpage before switch pages.

Ideally, I think the best solution is not to leave a tab until the validating event has completed successfully. Being able to do that might help for my particular circumstances. If you have multi-tab entry form final validation should occur only when final tab page is filled and confirmed. I guess maybe I should have asked only how to prevent a user from leaving a tab page. I think you should hook the Validating event for all the controls on your form.

The problem I am experiencing is when a control fails its validating event and the user clicks another tab things get messy. I guess maybe I should have asked only how to prevent a user from leaving a tab page. You can combine this with Validating event, where you can set Cancel=true to prevent further events after Validating. Generally speaking, I would suggest to reconsider whole validation scheme you use now - whatever unusual things you are trying to do. Ideally, I think the Hi Dennis, Based on my understanding, you want to validating all the controls on the tabpage before switch pages.

I think you should hook the Validating event for all the controls on your form.

For certain control, once it has focus, it will validate its data for closing, leaving, etc.. So the only problem when changing pages is when all the child controls on the form have no focus, then swith pages will not trigger the child controls' validating events.

Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

Hi, as per your suggestion, I have tried it but, It also did n't work. Cancel to true in selecting event, Now if I made a valid entry on the same page then controls are not working (or active ie.

Please look at the following code: Do you want to have your say when we set our development plans? If the selected tab is the first tab, you need to validate according to the text box that is in the second one and reverse. Thanks, Ajay Hi Ajay, You should check witch tab is clicked and validate according to that.Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items. Actully i want to achive functionality in Tab Strip, which i have achived by windows Tab Control. Note : Giving you the code which i have done with Windows Tab Control. We will decide later whether we will add that functionality (Deselecting, Deselected events).Objective: If i made invalid entry user should not be able to click any where and he will be on the validating control. after making Invalid entery click on other tab, It should prompt message (Message Box it is required for application). Now make some valid entry and change other control like Radio button, Combo Box (But not Text Box) on page. Here after message prompt if user made valid entry. The right work-around is to use Tab Selecting event of Rad Tab Strip and check the argument for the selected Tab Item, the currently selected item, and validate accordingly.

Leave a Reply