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

Decorator & Select : Bug 4 w/ LightMode

2 Answers 30 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Aarsh
Top achievements
Rank 1
Aarsh asked on 07 Mar 2014, 02:42 PM
Hello, the bug is very easy to reproduce. This is the 4th bug I've found with decorator in one month after start using it with Lightmode rendermode, evidently it is flimsy and needs testing.

.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
<!DOCTYPE html>
<html>
<head runat="server">
    <title>Telerik Decorator Bug # 4</title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
     <Scripts>
     <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
     <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
     <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
      </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" RenderMode="Classic"
        DecoratedControls="Default, Select" />
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
         <asp:DropDownList ID="DropDownList1" runat="server">
        </asp:DropDownList>
        <asp:Button ID="Button1" runat="server" Text="Button" />
     </div>
    </form>
</body>
</html>


.cs

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
using System.Collections.Generic;
 
public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Dictionary<int, string> values = new Dictionary<int, string>();
        for (int i = 0; i < 50; i++)
        {
            values[i] = string.Format("4th Decortor/Select Bug : {0}", i);
        }
        DropDownList1.AppendDataBoundItems = true;
        DropDownList1.Items.Insert(0, new ListItem(""));
        DropDownList1.DataSource = values;
        DropDownList1.DataTextField = "Value";
        DropDownList1.DataValueField = "Key";
        DropDownList1.DataBind();
        DropDownList1.SelectedIndex = -1;
    }
}

2 Answers, 1 is accepted

Sort by
0
Aarsh
Top achievements
Rank 1
answered on 10 Mar 2014, 03:11 PM
...
0
Accepted
Danail Vasilev
Telerik team
answered on 10 Mar 2014, 04:32 PM
Hello Aarsh,

In Q1 2014 we have made some improvements to the responsive capabilities of the RadFormDecorator (see this help article) which leads to the mentioned issue. I have logged the issue in our feedback portal here, so that you can monitor its progress, put your comments below and vote. For the time being you can use the following CSS workaround:
<style>
    .rfdSelect.rfdSelect_Default {
        min-height: 1.417em;
    }
</style>


As a small token of gratitude for reporting this issue to us I have updated your Telerik points.


Regards,
Danail Vasilev
Telerik
Explore the entire set of ASP.NET AJAX controls we offer here and browse the myriad online demos to learn more about the components and the features they incorporate.
Tags
FormDecorator
Asked by
Aarsh
Top achievements
Rank 1
Answers by
Aarsh
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or