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

RadListBox UpdatePanel Breaks Drag and Drop

0 Answers 97 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Kelly Arnold
Top achievements
Rank 1
Kelly Arnold asked on 07 Oct 2011, 08:40 PM
I have searched for a solution to this...so if I overlooked I apologize. Please advise as to where to find solution.
I have 2 RadListBox elements each wrapped in asp:UpdatePanel with UpdateMode="Conditional". When I call .Update on the update panel containing the drop destination control, it seems the drag and drop (even move with buttons) functionality is no longer available.

ASPX:
<div style="float:left; width:285px;">
<asp:UpdatePanel ID="up1" runat="server" UpdateMode="Conditional">
       <ContentTemplate>
           <telerik:RadListBox ID="rlb1" runat="server" AllowTransfer="true" EnableDragAndDrop="true" TransferMode="Copy" TransferToID="rlb2" SelectionMode="Multiple" ButtonSettings-VerticalAlign="Middle" ButtonSettings-ShowTransferAll="false" AllowTransferOnDoubleClick="true" Height="300px" Width="100%"></telerik:RadListBox>
       </ContentTemplate>
 </asp:UpdatePanel>
</div>
<div style="float:left; width:285px; padding:0px 0px 0px 10px;">
    <asp:UpdatePanel ID="up2" runat="server" UpdateMode="Conditional">
         <ContentTemplate>
           <telerik:RadListBox ID="rlb2" runat="server" EnableDragAndDrop="true" AllowReorder="true" AllowDelete="true" AllowTransferDuplicates="false" ButtonSettings-VerticalAlign="Middle" Height="300px" Width="100%"></telerik:RadListBox>
         </ContentTemplate>
     </asp:UpdatePanel>
 </div>


VB.NET:
rlb2.ClearSelection()
rlb2.Items.Clear()
up2.Update()

I downloaded the latest release and doesn't change this behavior.

Thanks...Kelly

I have opened a support ticket for this issue. Once resolved I will post the answer for anyone else having this issue.

10/11/2011....
So it seems the issue is created when an async postback occurs and only one of the two controls is updated (.Update on the update panel). The immediate solution is to update both controls (.Update on both update panels).  I have asked for this to be addressed in a future release as I strongly believe this is a bug. Hope someone finds this helpful.

10/12/2011....
Seems the "answer" is to update both controls. ie...Seperate update panels, call .Update on both.
You can view the ticket at http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=471747

No answers yet. Maybe you can help?

Tags
ListBox
Asked by
Kelly Arnold
Top achievements
Rank 1
Share this question
or