Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ListBox > DropDownList in RadListBox not working

Answered DropDownList in RadListBox not working

Feed from this thread
  • Chris avatar

    Posted on Jan 19, 2012 (permalink)

    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

    Reply

  • Bozhidar Bozhidar admin's avatar

    Posted on Jan 23, 2012 (permalink)

    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

    Reply

  • Chris avatar

    Posted on Jan 23, 2012 (permalink)

    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());
        }
    }

    Reply

  • Answer Bozhidar Bozhidar admin's avatar

    Posted on Jan 24, 2012 (permalink)

    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

    Reply

  • Chris avatar

    Posted on Jan 24, 2012 (permalink)

    Hi Bozhidar,

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

    Thanks,
    Chris

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ListBox > DropDownList in RadListBox not working