Hello,
I am trying to get Drag and Drop to work within a single RadListBox. I have the ItemsSource and SelectedItem bound (TwoWay). Whenever I drop an item within the listbox, the SelectedItem setter gets called with a value of null. I was able to reproduce this by updating the SDK sample "CustomListBoxDragDropBehavior_WPF" with the following:
How do I prevent the selected item to be called with null?
Thanks,
Steve
I am trying to get Drag and Drop to work within a single RadListBox. I have the ItemsSource and SelectedItem bound (TwoWay). Whenever I drop an item within the listbox, the SelectedItem setter gets called with a value of null. I was able to reproduce this by updating the SDK sample "CustomListBoxDragDropBehavior_WPF" with the following:
<telerik:RadListBox ItemContainerStyle="{StaticResource DraggableListBoxItem}"
ItemsSource="{Binding Customers1}"
SelectedItem="{Binding SelectedCustomer1, Mode=TwoWay}"
private
Customer selectedCustomer1;
public
Customer SelectedCustomer1
{
get
{
return
selectedCustomer1; }
set
{
selectedCustomer1 = value;
this
.OnPropertyChanged(() =>
this
.SelectedCustomer1);
}
}
How do I prevent the selected item to be called with null?
Thanks,
Steve