RadMaskedTextbox multiline issue

6 posts, 0 answers
  1. collapse
    collapse avatar
    7 posts
    Member since:
    May 2012

    Posted 17 Dec 2013 Link to this post


    Hi,

    I'm using Masked textbox multiline mode. 

    and prapare the mask like,
    protected void Page_Load(object sender, EventArgs e)
    {
        string mask = string.Format("xxxx: L## xx: #######{0}", Environment.NewLine);
     
        StringBuilder maskBuilder = new StringBuilder();
        for (int i = 0; i < 5; i++)
        {
            maskBuilder.AppendFormat("{0}", mask);
        }
        RadMaskedTextBox1.Mask = maskBuilder.ToString();
    }

    this mask displaying correctly firefox and chrome but IE not displaying correctly. 

    I,m faced with this situation after updating version

    new version:  2013.3.1114.40
    previous version : 2012_3_1205
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 17 Dec 2013 Link to this post

    Hi,

    Please try the following Code snippet which works fine at my end.

    C#:
    protected void Page_Load(object sender, EventArgs e)
    {
            StringBuilder maskBuilder = new StringBuilder();
            for (int i = 0; i < 5; i++)
            {
                maskBuilder.Append("xxxx: L## xx: #######");
                maskBuilder.AppendLine();
            }
            RadMaskedTextBox1.Mask = maskBuilder.ToString();
           
    }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. collapse
    collapse avatar
    7 posts
    Member since:
    May 2012

    Posted 18 Dec 2013 Link to this post

    thanks,

    but not work for me. 
    I wonder, your textbox width 140px or less?  When I set 140px it's displayed well. But higher then 140px, it looks bad shape.
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Dec 2013 Link to this post

    Hi,

    As a work around please try the following sample code snippet which works fine at my end.

    ASPX:
    <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" runat="server" TextMode="MultiLine"
        Width="250px">
    </telerik:RadMaskedTextBox>

    CSS:
    <style type="text/css">
        .RadInput_Default textarea
        {
            white-space: pre !important;
        }
    </style>

    C#:
    protected void Page_Load(object sender, EventArgs e)
    {
        StringBuilder maskBuilder = new StringBuilder();
        for (int i = 0; i < 5; i++)
        {
            maskBuilder.Append("xxxx: L## xx: #######");
            maskBuilder.AppendLine();
        }
        RadMaskedTextBox1.Mask = maskBuilder.ToString();
    }

    Hope this will helps you.
    Thanks,
    Shinu.
  6. collapse
    collapse avatar
    7 posts
    Member since:
    May 2012

    Posted 19 Dec 2013 Link to this post


    I've tried it.

    ie11 is working properly, but also lower versions looks corrupted
  7. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Dec 2013 Link to this post

    Hi,

    Unfortunately I couldn't replicate the issue at my end.

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