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

DropDownList in RadListBox not working

4 Answers 131 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 19 Jan 2012, 05:10 PM
Hi folks,

I use the ItemTemplate and put a DropDownList in the RadListBox. Meanwhile I set the EnableDragAndDrop to true for the RadListBox. Then the DropDownList does not work in IE9 and Chrome. However It works in FireFox, IE8, IE7. Did anyone encounter the same problem and know how to solve it? Any help would be appreciated.

Chris

4 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 23 Jan 2012, 04:39 PM
Hi Chris,

I tried to replicate your scenario, but wasn't able to reproduce the issue. Please include the markup for the listbox controls, as well as any code-behind related to them, so that we can reproduce the problem locally and provide you with a proper solution.
 
Greetings,
Bozhidar
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
0
Chris
Top achievements
Rank 1
answered on 23 Jan 2012, 05:24 PM
Hi Team,

Thank you for your response. I just create a empty web form and make it simple to demonstrate the problem.

The code is like the following,

in aspx:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ListBoxIssue.aspx.cs" Inherits="test_ListBoxIssue" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="scriptManager1" runat="server"></asp:ScriptManager>
    <div>
     <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
 
 
            <div>
                <telerik:RadListBox ID="lbSelected" runat="server" Width="300" Height="500"
                    EnableDragAndDrop="true" AllowReorder="true" ButtonSettings-ShowReorder="false">
                    <ItemTemplate>
                        <span>
                            <asp:Label ID="lblText" runat="server" Text="Hello"></asp:Label>
                            <asp:DropDownList ID="ddlDefaultOptions" runat="server">
                                <asp:ListItem Text="1" Value="1"></asp:ListItem>
                                <asp:ListItem Text="2" Value="2"></asp:ListItem>
                                <asp:ListItem Text="3" Value="3"></asp:ListItem>
                                <asp:ListItem Text="4" Value="4"></asp:ListItem>
                                <asp:ListItem Text="5" Value="5"></asp:ListItem>
                            </asp:DropDownList>
                            </span>
                    </ItemTemplate>
                </telerik:RadListBox>
            </div>
    </telerik:RadAjaxPanel>
    </div>
    </form>
</body>
</html>


in code-behind:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
public partial class test_ListBoxIssue : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        lbSelected.Items.Add(new RadListBoxItem());
        lbSelected.Items.Add(new RadListBoxItem());
    }
}
0
Accepted
Bozhidar
Telerik team
answered on 24 Jan 2012, 04:34 PM
Hi Chris,

Thank you for reporting this to us. 

As it appears, it is a bug in the RadListBox and I've reported it to our developers team.

However there is a simple workaround for this issue, that works on all the browsers I've tested it so far - you can use RadComboBox instead of the DropDownList.
 
Regards,
Bozhidar
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
0
Chris
Top achievements
Rank 1
answered on 24 Jan 2012, 09:43 PM
Hi Bozhidar,

Your workaround is nice. The RadComboBox works well for me.

Thanks,
Chris
Tags
ListBox
Asked by
Chris
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Chris
Top achievements
Rank 1
Share this question
or