Can't drop into empty list box

3 posts, 0 answers
  1. Tomasz
    Tomasz avatar
    20 posts
    Member since:
    Apr 2012

    Posted 24 Jan 2014 Link to this post

    Hi,
    Is this normal that when I have two ListBoxes and one of them is empty the second one is populated with items, I can't drop any items into the empty one?
    I'm seeing such behavior and don't know why this is happening.
  2. Tomasz
    Tomasz avatar
    20 posts
    Member since:
    Apr 2012

    Posted 24 Jan 2014 Link to this post

    I've noticed that this happens when I have the Header or Footer template defined... :(
    Any comments on that?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 Jan 2014 in reply to Tomasz Link to this post

    Hi,

    Please try the following sample code snippet to achieve your scenario.

    ASPX:
    <telerik:RadListBox ID="RadListBox1" runat="server" Width="200px" TransferToID="RadListBox2"
        Height="200px" SelectionMode="Multiple" EnableDragAndDrop="true" AllowTransfer="true">
        <HeaderTemplate>
            <asp:TextBox ID="TextBox1" runat="server" Text="Header">
            </asp:TextBox>
        </HeaderTemplate>
        <FooterTemplate>
            <asp:TextBox ID="TextBox2" runat="server" Text="Footer"></asp:TextBox>
        </FooterTemplate>
        <Items>
            <telerik:RadListBoxItem Text="Argentina"></telerik:RadListBoxItem>
            <telerik:RadListBoxItem Text="Australia"></telerik:RadListBoxItem>
            <telerik:RadListBoxItem Text="Brazil"></telerik:RadListBoxItem>
            <telerik:RadListBoxItem Text="Canada"></telerik:RadListBoxItem>
            <telerik:RadListBoxItem Text="Chile"></telerik:RadListBoxItem>
            <telerik:RadListBoxItem Text="China"></telerik:RadListBoxItem>
            <telerik:RadListBoxItem Text="Egypt"></telerik:RadListBoxItem>
            <telerik:RadListBoxItem Text="England"></telerik:RadListBoxItem>
            <telerik:RadListBoxItem Text="France"></telerik:RadListBoxItem>
        </Items>
    </telerik:RadListBox>
    <telerik:RadListBox ID="RadListBox2" runat="server" Width="200px" Height="200px"
        SelectionMode="Multiple" EnableDragAndDrop="true">
    </telerik:RadListBox>

    Thanks,
    Shinu.
Back to Top