event fires two times on RadTab

3 posts, 0 answers
  1. Levente Mihály
    Levente Mihály avatar
    18 posts
    Member since:
    Jul 2008

    Posted 02 Dec 2008 Link to this post

    Hi,

    I have a strange error with RadTabControl.
    I put a UserControl on a RadTabItem, this UserControl has a TreeView on it. I set the SelectedItemChanged event for the TreeView in the UserControl's Initalized event (i've also tried setting it in the xaml, same result). Now when I select a node the event fires two times (and the selection jumps back to the root node).

    When I put this UserControl  on a normal wpf TabControl, it works as expected, the event fires once. So I think the problem is RadTabControl related.

    Please help me sort this out.

    thanks,
    Levente
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 08 Dec 2008 Link to this post

    Hi Levente,

    First, sorry for the delayed reply.

    I tried to reproduce the problem but did not get the event firing twice. The project I used is attached, could you have a look at it and check if I am missing something?

    Regards,
    Miroslav
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Levente Mihály
    Levente Mihály avatar
    18 posts
    Member since:
    Jul 2008

    Posted 11 Dec 2008 Link to this post

    Hi,

    the problem didn't occure for me neither in this project. Maybe it's something else, i don't know. I tried to add the items dynamically (both to the tree and the tabcontrol) but the problem didn't come up. I will try to reproduce the problem in this project, once i have a little time.
    thanks for the reply,

    Regards,
    Levente
Back to Top