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

How to handle item reorder through viewmodel?

1 Answer 46 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Oleg
Top achievements
Rank 1
Oleg asked on 07 Nov 2012, 12:25 PM
Hi, i have a RadDataBoundListBox, i want to bind item reorder event to my viewmodel:
<tp:RadDataBoundListBox x:Name="ChanelsList"
                        ItemsSource="{Binding Channels, Mode=TwoWay}"
                        ItemTemplate="{StaticResource EditChannelTemplate}"
                        IsItemReorderEnabled="True" />

After reordering ObservableCollection does not change.
I was seeking here http://www.telerik.com/help/windows-phone/allmembers_t_telerik_windows_controls_raddataboundlistbox.html
for appropriate event after reordering listbox collection, but did not find anything. 

Thanks

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 07 Nov 2012, 02:43 PM
Hello Oleg,

Thanks for writing.

The reordering of items within the source collection of the DataBoundListBox control happens synchronously with the reordering of visual items, i.e. items are reordered in the source collection as soon as you start changing the order via the User Interface.

Can you please share with us a sample that demonstrates your issue so that we can take a look and see what goes wrong? Normally you should have your items ordered in the source collection.

Kind regards,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DataBoundListBox
Asked by
Oleg
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or