Problem with transfer radlistbox items

5 posts, 0 answers
  1. Sudhanshu Tripathi
    Sudhanshu Tripathi avatar
    14 posts
    Member since:
    Mar 2010

    Posted 26 May 2010 Link to this post

      I am getting problem with transfering the item from source to destinaion listbox. when transferring the data then source listbox lost the item while destination show blank row. i am using following code


    <telerik:RadListBox ID="lstSourceCity" runat="server" AllowTransfer="true" EnableDragAndDrop="false"




    Height="205px" TransferMode="Move" TransferToID="lstDestinationCity" Width="350px"




    SelectionMode="Multiple" CssClass="Align" OnItemDataBound="lstSourceCity_ItemDataBound" OnTransferred="lstSourceCity_Transferred" AutoPostBackOnTransfer="true">








    <asp:Label ID="lblCity" runat="server" Text='<%# Eval("CityName") %>'></asp:Label>












    <telerik:RadListBox ID="lstDestinationCity" runat="server" Height="205px" Width="350px"




    CssClass="Align" OnItemDataBound="lstDestinationCity_ItemDataBound">








    <asp:CheckBox ID="chkIsFeatured" runat="server" />




    <asp:Label ID="lblDestCity" runat="server" Text='<%# Eval("CityName") %>'></asp:Label>











    protected void lstSourceCity_Transferred(object sender, RadListBoxTransferredEventArgs e)



    foreach (RadListBoxItem listBoxItem in e.Items)





     I am searching the soluntion for last couple of day but did not find exact solution.





  2. Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 28 May 2010 Link to this post

    Hello Sudhanshu Tripathi,

    Transferring templated items from two databind listboxes requires some additional codding. I am attaching sample project  that demonstrates a possible approach.

    Sincerely yours,
    Genady Sergeev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Sudhanshu Tripathi
    Sudhanshu Tripathi avatar
    14 posts
    Member since:
    Mar 2010

    Posted 01 Jun 2010 Link to this post

    Hi Genady,
                thanks for reply .  your code is very helpful.
  4. Birol
    Birol avatar
    5 posts
    Member since:
    May 2009

    Posted 11 Oct 2011 Link to this post

    Is it possible transfering items without using postback?
    I just want to use client side scripting.
  5. Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 12 Oct 2011 Link to this post

    Hello Birol,

    You could transfer items entirely on the client-side as shown on this demo here (uncheck the Auto postback on transfer check box to the right) , but this scenario is not supported when you have server controls in item template or data binding expressions.

    Kind regards,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top