I am using 2010.1.216.35.
The strange thing is, we have two pages that appear to be basically identical, one passes the after-drop collection and one passes the before-drop collection. Shouldn't it consistantly pass the after drop?
Here is the one that works:
<telerik:RadListBox ID="lstSortedFields" runat="server" SelectionMode="Multiple"
AllowTransfer="True" AutoPostBackOnTransfer="True" AllowReorder="True" AutoPostBackOnReorder="True"
EnableDragAndDrop="True" TransferToID="lstAvailableFields" Height="300px" Width="250px"
OnTransferred="OnSortedListTransferred" OnUpdated="OnSortedListUpdated"
>
<ButtonSettings ShowReorder="false" ShowTransfer="false" ShowTransferAll="false" />
<ItemTemplate>
<asp:Image ID="imgIcon" runat="server" ImageUrl='<%# Eval("Icon") %>' />
<asp:Literal ID="ltrText" runat='server' Text='<%# Eval("DisplayName") %>'></asp:Literal>
</ItemTemplate>
</telerik:RadListBox>
--
protected void OnSortedListUpdated(object sender, RadListBoxEventArgs e)
{
if (SortedListUpdatedEvent != null)
SortedListUpdatedEvent(sender, e);
}
And here is the one that doesn't:
<telerik:RadListBox ID="lstSelectedFields" runat="server" SelectionMode="Multiple" AutoPostBack="true"
AllowTransfer="True" AutoPostBackOnTransfer="True" AllowReorder="true" AutoPostBackOnReorder="true"
EnableDragAndDrop="True" TransferToID="lstAvailableFields" Height="300px" Width="250px"
OnInserted = "OnSelectedListInserted"
OnReordered="OnSelectedListReorderedEvent" OnTransferred="OnSelectedListTransferred">
<ButtonSettings ShowReorder="true" ShowTransfer="false" ShowTransferAll="false" />
</telerik:RadListBox>
-----
protected void OnSelectedListReorderedEvent(object sender, RadListBoxEventArgs e)
{
if (SelectedListReorderedEvent != null)
{
SelectedListReorderedEvent(sender, e);
}
}
On the first, I trace the program to OnSortedListUpdated and sender.Items.base.base.NonPublic._collectionItems shows the list of items in the box in the order they should be AFTER the drop is complete (even though the UI doesn't actually reflect the new order until later).
On the second page, I trace the program ro OnSelectedListReorderedEvent and sender.Items.base.base.NonPublic._collectionItems shows the list of items in the box in the order they should be BEFORE the drop is complete. However, as you can see I also turned on the buttons, and if I use the up button rather than drag/drop, then it is like the first page (sender.Items.base.base.NonPublic._collectionItems shows the list of items in the box in the order they should be AFTER the drop is complete).
Now I do see that for one box I am using OnUpdated and the second is OnReordered, but that doesn't really explain why the second page is sending two different Item collections depending on using button vs drag-and-drop.
Could some setting in here be altering how it works?