Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TabControl > How to AllowDragReorder when ItemsSource is set to binding?

Answered How to AllowDragReorder when ItemsSource is set to binding?

Feed from this thread
  • Roman avatar

    Posted on May 6, 2011 (permalink)

    I'm trying to enable tabs reordering, but it works only when items are set in xaml.

    This works:
    <t:RadTabControl AllowDragReorder="True" x:Name="radTabControl1">
        <t:RadTabItem Header="item1" />
        <t:RadTabItem Header="item2" />
        <t:RadTabItem Header="item3" />
    </t:RadTabControl>

    And this don't
    <t:RadTabControl AllowDragReorder="True" x:Name="radTabControl1" ItemsSource="{Binding list}" />


    How to make this work with binding?

    Reply

  • Answer Petar Mladenov Petar Mladenov admin's avatar

    Posted on May 11, 2011 (permalink)

    Hello Roman,

    I am unable to reproduce this issue in our environment. Could you please have a look at my test project and let me know if I am have missed something ?

    Kind regards,
    Petar Mladenov
    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
    Attached files

    Reply

  • Roman avatar

    Posted on May 11, 2011 (permalink)

    My code didn't work because I used List instead of ObservableCollection

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on May 11, 2011 (permalink)

    Hello Roman,

    Yes. I forgot to mention that ObservableCollection<> is very suitable in scenarios when you make changes both in the UI and in the ViewModel. ObservableCollection implements ICollectionChanged and IPropertyChanged interface and this way every change in the ViewModel is automatically reflected in the UI.

    Kind regards,
    Petar Mladenov
    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

    Reply

  • Corey avatar

    Posted on Nov 8, 2011 (permalink)

    The DLLs you included in this demo are version 2011.1.0315.40.
    I am currenting using version 2011.2.0920.35.

    RadTabControl reordering is not working for my current version through Data Binding on the ItemsSource. If I reference your version of DLLs, it works.

    Thanks,

    Corey

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Nov 11, 2011 (permalink)

    Hello Corey,

    We managed to reproduce this issue with the 920 (Q2 2011 SP) dlls. The good news is that this is already resolved and the fix will be included in the upcoming Q3 2011 Official Release.
    Please excuse us for the inconvenience caused.

    All the best,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TabControl > How to AllowDragReorder when ItemsSource is set to binding?
Related resources for "How to AllowDragReorder when ItemsSource is set to binding?"

WPF TabControl Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]