Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > TabControl > Event LostFocus of TextBox occurs after tab changing

Not answered Event LostFocus of TextBox occurs after tab changing

Feed from this thread
  • Posted on Dec 21, 2011 (permalink)

    Hello,

    I have a tabcontrol with 2 tabs. Now I want to check in the LostFocus of my TextBox on the second tab (sdk-Microsoft) if the input is valid or not and if it's not valid then I set the focus on the field again. This is working fine at every situation, except I click on the RadTabControl. There the tab is changed before I get the LostFocus of my TextBox, so I am not able to stop the user changing the tab.

    best regards,
    Richard Koslik

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Dec 26, 2011 (permalink)

    Hi Richard Koslik ,

     If you need to prevent the Tab Selection in certain scenarios, have you considered using the PreviewSelectionChanged event of the RadTabControl. You can perform the validation you do in the LostFocus of the TextBox and set e.Handled to true in order to prevent the selection. Is this suitable for you?

    Kind regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > TabControl > Event LostFocus of TextBox occurs after tab changing
Related resources for "Event LostFocus of TextBox occurs after tab changing"

Silverlight TabControl Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]