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

3 posts, 1 answers
  1. Baris
    Baris avatar
    34 posts
    Member since:
    Jul 2013

    Posted 06 Feb 2014 Link to this post

    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. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 Feb 2014 in reply to Baris Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Baris
    Baris avatar
    34 posts
    Member since:
    Jul 2013

    Posted 07 Feb 2014 in reply to Shinu Link to this post

    thank you my friend. I will add your name too end of the my project:P
Back to Top