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

event fires two times on RadTab

2 Answers 73 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Levente Mihály
Top achievements
Rank 1
Levente Mihály asked on 02 Dec 2008, 04:46 PM
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 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 08 Dec 2008, 09:47 AM
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.
0
Levente Mihály
Top achievements
Rank 1
answered on 11 Dec 2008, 12:28 PM
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
Tags
TabControl
Asked by
Levente Mihály
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Levente Mihály
Top achievements
Rank 1
Share this question
or