I am binding the itemsource of the tabcontrol during the control is invisible. If I make the control visible afterwards, no tabitem is selected.
If I am binding during the tabcontrol is visible, everything is working fine.
Do I have to do a layout update after the binding? Is this a bug or feature?
1 Answer, 1 is accepted
0
Hristo
Telerik team
answered on 09 Sep 2010, 01:13 PM
Hi prog1,
If you change the source during the tab control is not visible and if during load it didn't had items the SelectedIndex property is not updated properly. You can just update the SelectedIndex at your will and the respective tab will be selected. Also if item source is provided during the tab load method then you will be able to change the source and first tab will be selected.
This is a bug and you can track its state in our PITS under the following title: SelectedIndex not updated when Visibility=Collapsed and ItemsSource is Changed .
All the best,
Hristo Milyakov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items