Binding to SelectedIndex Property

2 posts, 0 answers
  1. michael mccurrey
    michael mccurrey avatar
    6 posts
    Member since:
    May 2008

    Posted 12 Aug 2009 Link to this post

    I can't seem to get TwoWay Binding to work with the TabControl SelectedIndex Property,  anybody else get this to work or is it just broken?
    XAML Looks like this:
    <Controls1:RadTabControl DockPanel.Dock="Top" SelectedIndex="{Binding Path=Header.SelectedTabIndex,Mode=TwoWay}" >
    ViewModel Looks like this:
            public int SelectedTabIndex
                get { return _selectedTabIndex; }
                    if (_selectedTabIndex != value)
                        _selectedTabIndex = value;
    Now, it gets updated if the user clicks a tab, but if its set in the ViewModel, TabControl does nothing...

    Using 2009.2.701.35 build
  2. Bobi
    Bobi avatar
    513 posts

    Posted 13 Aug 2009 Link to this post

    Hello michael mccurrey,

    Please find attached a sample project that shows you how to bind SelectedIndex property.
    You can also download the latest released assemblies from this week SP1 release where you can find some new fixes of Telerik controls.

    I hope that this will help you.

    Please let us know if you have any other questions or need some help.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top