This is a migrated thread and some comments may be shown as answers.
RadMaskedTextBox with EnableSingleInputRendering enabled breaks it
4 Answers 40 Views
This is a migrated thread and some comments may be shown as answers.
Jacques
Top achievements
Rank 2
Jacques asked on 21 Apr 2012, 11:29 AM
Not sure why, but enabling Single Input on the RadMaskedTextBox breaks it. You can't type in the textbox, but if you paste in it it formats the input correctly. 

For example: 
<form id="form1" runat="server">
<asp:ScriptManager runat="server">
</asp:ScriptManager>
<div>
    <telerik:RadMaskedTextBox ID="MaskTest" runat="server" Mask="(###) ###-####" EnableSingleInputRendering="true"
        HideOnBlur="true">
    </telerik:RadMaskedTextBox>
</div>
</form>

pasting a valid telephone number works, but the textbox doesn't allow you to type in it including number. 

Anyone know why this is? 

Regards,
Jacques

4 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 23 Apr 2012, 06:08 PM
Jacques:

I am able to type in your RadMaskedTextBox with the property settings that you've defined. I'm using "Telerik.Web.UI.dll" (2012.1.411.40).

See this JING video for the behavior: http://screencast.com/t/IQpxauwa

Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
 
<!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>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <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>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <telerik:RadMaskedTextBox ID="MaskTest" runat="server" Mask="(###) ###-####" EnableSingleInputRendering="true"
            HideOnBlur="true">
        </telerik:RadMaskedTextBox>
    </div>
    </form>
</body>
</html>
0
Jacques
Top achievements
Rank 2
answered on 03 May 2012, 07:11 PM
I'm using the version that comes with Sitefinity 4.4 and it definitely doesn't work. I've tested it with nothing else on the page and used the built in skins. Doesn't work. 

I'm wondering if this was a bug in that particular version...
0
Accepted
Vasil
Telerik team
answered on 08 May 2012, 07:05 AM
Hello Jacques,

Sitefinity 4.4 uses Q3 2011 RadControls if I am not wrong. In this version the SingleInputRendering was still in beta stage and we fixed lots of things until it was set by default in the Q1 2012. For the version that you are using it is recommended to use the old rendering. And if you have any problems with the current version Q1 2012 SP, then please let us know, so we could perform further investigations and do anything possible to fix it for the next release.

Greetings,
Vasil
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
Jacques
Top achievements
Rank 2
answered on 08 May 2012, 09:40 AM
I've switched off the SingleInputRendering in some scenarios and that definitely seems to have helped, but it's not a great solution because we now have to write custom CSS for these controls specifically. Turning it off on all of them is not an option, because then we'd have to redo a lot of the CSS code.

Thanks for the help.
Tags
Input
Asked by
Jacques
Top achievements
Rank 2
Answers by
Richard
Top achievements
Rank 1
Jacques
Top achievements
Rank 2
Vasil
Telerik team
Share this question
or