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

drag and drop an item from a listbox to more than one listbox

2 Answers 57 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Baris
Top achievements
Rank 1
Baris asked on 06 Feb 2014, 01:23 PM
hi,

In this link we can see that drag and drop an item from a listbox to one listbox. In example using "TransferToID" propert we can transfer an item one to one. Now, I have 3 listbox  which are names a,b,c. I want to transfer items from a to b and from a to c.

How can I do that?

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 07 Feb 2014, 06:27 AM
Hi Baris,

Please have a look into the following code snippet to drag and drop item between three RadListBox.

ASPX:
<telerik:RadListBox ID="RadListBox1" runat="server" TransferToID="RadListBox2" EnableDragAndDrop="true"   AllowTransfer="true" AutoPostBackOnTransfer="true">
    <Items>
        <telerik:RadListBoxItem Text="item 1" />
        <telerik:RadListBoxItem Text="item 2" />
        <telerik:RadListBoxItem Text="item 3" />
        <telerik:RadListBoxItem Text="item 4" />
        <telerik:RadListBoxItem Text="item 5" />
        <telerik:RadListBoxItem Text="item 6" />
    </Items>
</telerik:RadListBox>
<telerik:RadListBox ID="RadListBox2" runat="server" TransferToID="RadListBox3" EnableDragAndDrop="true" AllowTransfer="true" AutoPostBackOnTransfer="true" Height="50px">
</telerik:RadListBox>
<telerik:RadListBox ID="RadListBox3" runat="server" TransferToID="RadListBox1" EnableDragAndDrop="true" AllowTransfer="true" AutoPostBackOnTransfer="true" Height="50px">
</telerik:RadListBox>

Hope this will helps you.
Thanks,
Shinu.
0
Baris
Top achievements
Rank 1
answered on 07 Feb 2014, 07:03 AM
thank you my friend. I will add your name too end of the my project:P
Tags
ListBox
Asked by
Baris
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Baris
Top achievements
Rank 1
Share this question
or