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

Conflict with RadFormDecorator in IE 6+?

2 Answers 45 Views
Input
This is a migrated thread and some comments may be shown as answers.
Derek Hunziker
Top achievements
Rank 1
Derek Hunziker asked on 10 Sep 2008, 05:07 AM
Hello,

I have a standard RadMaskedTextBox on the same page as a RadFormDecorator.  In IE 6+, it appears that the textbox is rendering the mask as plain text.  When I type inside the textbox, it adds to the mask like so: (000) 00684460-0000.  It also causes the textbox to accept alpha characters on a strictly numeric mask.  Other features such as ResetCaretOnFocus aren't working either. Has anyone else experienced this?

My textbox resides within the same HTML element as my other standard textboxes so I don't think I can use the RadFormDecorators DecorationZoneID setting.

Here is an example:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="business_purchasing_orders_Default" %> 
 
<%@ 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"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server"
        </asp:ScriptManager> 
        <telerik:RadFormDecorator ID="RadFormDecorator1" DecoratedControls="All" runat="server" /> 
        <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" Mask="(###) ###-####" PromptChar="0" runat="server"
        </telerik:RadMaskedTextBox> 
    </div> 
    </form> 
</body> 
</html> 

Are there any known workarounds for this, or do I have something wrong going on?

Thanks!

-Derek

2 Answers, 1 is accepted

Sort by
0
Derek Hunziker
Top achievements
Rank 1
answered on 10 Sep 2008, 05:25 PM
I've managed to remedy this issue temporarily by disabling the RadFormDecorator on Page_Load if the browser is IE.

    protected void HandleIE() 
    { 
        int ver = -1; 
 
        System.Web.HttpBrowserCapabilities browser = Request.Browser; 
        if (browser.Browser == "IE") 
        { 
            RadFormDecorator1.Visible = false
            ver = browser.MajorVersion; 
        } 
 
        if (ver > 0) 
        { 
            if (ver > 6) 
            { 
                // You've got a recent version of IE, which isn't saying much 
            } 
            else 
            { 
                // Your living in the stone age
            } 
        } 
        else 
        { 
            // Thank god
        } 
    } 

0
Georgi Tunev
Telerik team
answered on 11 Sep 2008, 11:00 AM
Hello Derek Hunziker,

This problem is fixed in our internal builds and the fix will be available with the next service pack. For the time being you can also try (except the solution that you found) to set the DecoratedControls property to Default. This will turn the decoration of the textboxes off and you will not experience this behavior.


Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Input
Asked by
Derek Hunziker
Top achievements
Rank 1
Answers by
Derek Hunziker
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or