This is a migrated thread and some comments may be shown as answers.

How to AllowDragReorder when ItemsSource is set to binding?

5 Answers 81 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 06 May 2011, 08:57 AM
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?

5 Answers, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 11 May 2011, 02:15 PM
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
0
Roman
Top achievements
Rank 1
answered on 11 May 2011, 02:31 PM
My code didn't work because I used List instead of ObservableCollection
0
Petar Mladenov
Telerik team
answered on 11 May 2011, 02:36 PM
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
0
Corey
Top achievements
Rank 1
answered on 08 Nov 2011, 09:04 PM
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
0
Petar Mladenov
Telerik team
answered on 11 Nov 2011, 04:13 PM
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 >>

Tags
TabControl
Asked by
Roman
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Roman
Top achievements
Rank 1
Corey
Top achievements
Rank 1
Share this question
or