Bind to Itemsource during Visibility=Collapsed

2 posts, 0 answers
  1. prog1
    prog1 avatar
    61 posts
    Member since:
    Jul 2008

    Posted 06 Sep 2010 Link to this post

    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?
  2. Hristo
    Hristo avatar
    352 posts

    Posted 09 Sep 2010 Link to this post

    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
  3. DevCraft banner
Back to Top