Transfer-Problem with Ajaxupdated SourceListbox

2 posts, 0 answers
  1. Dominik Gierse
    Dominik Gierse avatar
    1 posts
    Member since:
    Oct 2009

    Posted 05 Oct 2009 Link to this post


    I've got a problem with the transfer betwenn two listboxes.
    There are 3 Listboxes on my Form. Box1 is used to preselect the Items appearing in Box2.
    Then i want to to transfer some of the items from box2 into box3.

    I use the RadajaxManger and register Box2 as AjaxUpdatedControl to preselect the items in box2. But when i register Box2 as AjaxUpdatedControl the transfer to box3 fails. When i transfer an item, the item is deleted in the sourcelistbox but it is not listed in the destinationbox.

    what can i do to make it work without using postbacks for preseletion ?

    best regards
  2. Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 08 Oct 2009 Link to this post

    Hello Dominik Gierse,

    The following code works as expected and does not need a postback in order the Transfer functionality to work:

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <telerik:RadListBox ID="RadListBox1" runat="server" AllowTransfer="True" Width="150" Height="150"
            <telerik:RadListBoxItem runat="server" Text="RadListBoxItem1" />
            <telerik:RadListBoxItem runat="server" Text="RadListBoxItem2" />
            <telerik:RadListBoxItem runat="server" Text="RadListBoxItem3" />
            <telerik:RadListBoxItem runat="server" Text="RadListBoxItem4" />
            <telerik:RadListBoxItem runat="server" Text="RadListBoxItem5" />
            <telerik:RadListBoxItem runat="server" Text="RadListBoxItem6" />
            <telerik:RadListBoxItem runat="server" Text="RadListBoxItem7" />
            <telerik:RadListBoxItem runat="server" Text="RadListBoxItem8" />
            <telerik:RadListBoxItem runat="server" Text="RadListBoxItem9" />
    <telerik:RadListBox runat="server" ID="RadListBox2" AllowTransfer="True" Width="150" Height="150" 
    <telerik:RadListBox ID="RadListBox3" runat="server" Width="150" Height="150" >

    I hope this helps.

    Kind regards,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top