Listbox Transfer with checkbox

3 posts, 0 answers
  1. Kenny
    Kenny avatar
    2 posts
    Member since:
    May 2014

    Posted 15 May 2014 Link to this post

    Currently I'm working on listbox with checkbox selection for transfer purpose. I'm able to transfer the checked item in source to destination listbox with the following script.
    function clientTransfering(sender, args) {
            args.set_cancel(true);
            var checkedNodes = args.get_sourceListBox().get_checkedItems();
            for (var i in checkedNodes) {
                var item = checkedNodes[i];
                args.get_sourceListBox().transferToDestination(item);
            }
        }
    But I not able to transfer checked item from destination listbox back to the source listbox.
    Is there any way of transferring destination listbox item with checkbox back to the source listbox?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 15 May 2014 in reply to Kenny Link to this post

    Hi Kenny,

    Please make sure that you have set the AllowTransfer property and TransferToID property of destination ListBox as follows.

    ASPX:
    <telerik:RadListBox ID="RadListBox1" runat="server" AllowTransfer="true" CheckBoxes="true"
        TransferToID="RadListBox2" OnClientTransferring="clientTransfering">
        <Items>
            <telerik:RadListBoxItem Text="Item1" />
            <telerik:RadListBoxItem Text="Item2" />
            <telerik:RadListBoxItem Text="Item3" />
            <telerik:RadListBoxItem Text="Item4" />
            <telerik:RadListBoxItem Text="Item5" />
        </Items>
    </telerik:RadListBox>
    <telerik:RadListBox ID="RadListBox2" runat="server" CheckBoxes="true" AllowTransfer="true"
        TransferToID="RadListBox1">
    </telerik:RadListBox>

    Let me know if you have any concern.
    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kenny
    Kenny avatar
    2 posts
    Member since:
    May 2014

    Posted 15 May 2014 in reply to Shinu Link to this post

    Hi Shinu,

    Thanks for the reply. The transfer function is working properly now.
Back to Top