Hi,
I actually implemented the drag and drop example from the demo. There are two list boxes where I can drag and drop or use a button to move a selected item from one list box to the other.
I would like to modify it so that I can select multiple items and click the "add selected" button or drag them.
Here's how I am currently trying to move selected but it seems to remove all of the items.
Do you have an example for the drag and drop of multiple selected items? and do I use MultiExtended or MultiSimple?
Thank you,
Beth
I actually implemented the drag and drop example from the demo. There are two list boxes where I can drag and drop or use a button to move a selected item from one list box to the other.
I would like to modify it so that I can select multiple items and click the "add selected" button or drag them.
Here's how I am currently trying to move selected but it seems to remove all of the items.
private void RemoveSelectedFromListBox(RadListControl sourceListBox, RadListControl targetListBox)
{
if (sourceListBox.Items.Count == 0) { return; }
if (sourceListBox.SelectedItems == null) { return; }
for (int i = 0; i < sourceListBox.SelectedItems.Count; )
{
RadListDataItem item = sourceListBox.SelectedItems[i];
sourceListBox.Items.Remove(item);
targetListBox.Items.Add(item);
}
}
Do you have an example for the drag and drop of multiple selected items? and do I use MultiExtended or MultiSimple?
Thank you,
Beth