selectionchanged Event problem?

2 posts, 0 answers
  1. Vincent
    Vincent avatar
    9 posts
    Member since:
    Dec 2013

    Posted 19 Aug 2014 Link to this post

    When I place a RadTabControl (B) in a RadTabControl (A). when I Switch the tabitem of B, the A's selectionchanged event fired.
  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 21 Aug 2014 Link to this post

    Hi Vincent,

    We investigated this behavior and it seems that the logic in the Selector class (which the RadTabControl inherits) that raises the SelectionChanged event listens if the tab control has an tab control parent. If so it fires the parent's event.

    In order to change this behavior you can subscribe for the SelectionChanged event of the inner RadTabControl and handle the event.

    private void RadTabControl_SelectionChanged(object sender, RadSelectionChangedEventArgs e)
    {
        e.Handled = true;
    }

    I hope this helps.

    Regards,
    Martin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. DevCraft banner
Back to Top