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

Can't drop into empty list box

2 Answers 55 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Tomasz
Top achievements
Rank 1
Tomasz asked on 24 Jan 2014, 11:54 AM
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 Answers, 1 is accepted

Sort by
0
Tomasz
Top achievements
Rank 1
answered on 24 Jan 2014, 12:05 PM
I've noticed that this happens when I have the Header or Footer template defined... :(
Any comments on that?
0
Shinu
Top achievements
Rank 2
answered on 27 Jan 2014, 07:05 AM
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.
Tags
ListBox
Asked by
Tomasz
Top achievements
Rank 1
Answers by
Tomasz
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or