set the length for textbox

  1. #1

    set the length for textbox

    Hi i want to set the characters or numbers length in textbox.

    for this i use these

    
    
    
    
    <ext:TextField ID="TextField1" runat="server" MaxLength="4" MsgTarget="side"/>
    it will work fine but the problem is if i enter more than 4 characters it will take those and shows error.(the max length for these field is 4)
    but what i want is the text box will not take above 4 characters

    plz solve these as soon as possible.

    Thanks in Advance.
  2. #2

    RE: set the length for textbox

    There was a problem with the .MaxLength property in IE. I've committed a fix to SVN.

    Until the next release, you can use the following work-around.

    Example

    <ext:TextField ID="TextField1" runat="server" MaxLength="4">
        <CustomConfig>
            <ext:ConfigItem Name="autoCreate" Value="{tag : 'input', type : 'text', maxlength : 4, autocomplete : 'off' }" />
        </CustomConfig>
    </ext:TextField>
    Hope this helps.

    Geoffrey McGill
    Founder
  3. #3

    RE: set the length for textbox



    Thanks for solve these problem. but for TextArea control it will not work. how to avoid these problem plz tell me


    Thanks in Advance
  4. #4

    RE: set the length for textbox



    Thanks for solve these problem. but for TextArea control it will not work. how to avoid these problem plz tell me
  5. #5

    RE: set the length for textbox

    This thread appears related to the following thread, see http://forums.ext.net/showthread.php...14306-4-1.aspx

    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 2
    Last Post: Feb 22, 2012, 10:33 AM
  2. About store Field length
    By supermanok in forum 1.x Help
    Replies: 1
    Last Post: Jul 20, 2009, 8:46 AM
  3. set the length for TextArea
    By Dinesh.T in forum 1.x Help
    Replies: 4
    Last Post: Jun 19, 2009, 2:42 AM
  4. [CLOSED] TextFiled max length
    By Satyanarayana murthy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 29, 2009, 5:13 AM
  5. Replies: 1
    Last Post: Dec 25, 2008, 6:32 AM

Posting Permissions