How to AllowDragReorder when ItemsSource is set to binding?

6 posts, 1 answers
  1. Roman
    Roman avatar
    8 posts
    Member since:
    Nov 2010

    Posted 06 May 2011 Link to this post

    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?
  2. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 11 May 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Roman
    Roman avatar
    8 posts
    Member since:
    Nov 2010

    Posted 11 May 2011 Link to this post

    My code didn't work because I used List instead of ObservableCollection
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 11 May 2011 Link to this post

    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
  6. Corey
    Corey avatar
    1 posts
    Member since:
    Sep 2011

    Posted 08 Nov 2011 Link to this post

    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
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 11 Nov 2011 Link to this post

    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 >>

Back to Top
UI for WPF is Visual Studio 2017 Ready