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

Transfer-Problem with Ajaxupdated SourceListbox

1 Answer 51 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Dominik Gierse
Top achievements
Rank 1
Dominik Gierse asked on 05 Oct 2009, 07:45 AM
Hi,

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
Dominik

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 08 Oct 2009, 10:40 AM
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:RadScriptManager>
<telerik:RadListBox ID="RadListBox1" runat="server" AllowTransfer="True" Width="150" Height="150"
    TransferToID="RadListBox2">
    <Items>
        <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" />
    </Items>
</telerik:RadListBox>
<telerik:RadListBox runat="server" ID="RadListBox2" AllowTransfer="True" Width="150" Height="150" 
    TransferToID="RadListBox3">
</telerik:RadListBox>
<telerik:RadListBox ID="RadListBox3" runat="server" Width="150" Height="150" >
</telerik:RadListBox>

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.
Tags
ListBox
Asked by
Dominik Gierse
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or