RadMaskedTextBox with EnableSingleInputRendering enabled breaks it

5 posts, 1 answers
  1. Jacques
    Jacques avatar
    135 posts
    Member since:
    Jun 2007

    Posted 21 Apr 2012 Link to this post

    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
  2. jumpstart
    jumpstart avatar
    479 posts
    Member since:
    Nov 2011

    Posted 23 Apr 2012 Link to this post

    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>
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jacques
    Jacques avatar
    135 posts
    Member since:
    Jun 2007

    Posted 03 May 2012 Link to this post

    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...
  5. Answer
    Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 08 May 2012 Link to this post

    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.
  6. Jacques
    Jacques avatar
    135 posts
    Member since:
    Jun 2007

    Posted 08 May 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017