DropDownList in RadListBox not working

5 posts, 1 answers
  1. Chris
    Chris avatar
    3 posts
    Member since:
    Apr 2011

    Posted 19 Jan 2012 Link to this post

    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
  2. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 23 Jan 2012 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chris
    Chris avatar
    3 posts
    Member since:
    Apr 2011

    Posted 23 Jan 2012 Link to this post

    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());
        }
    }
  5. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 24 Jan 2012 Link to this post

    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
  6. Chris
    Chris avatar
    3 posts
    Member since:
    Apr 2011

    Posted 24 Jan 2012 Link to this post

    Hi Bozhidar,

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

    Thanks,
    Chris
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017