[CLOSED] MaxLength Property

  1. #1

    [CLOSED] MaxLength Property

    Hi,

    <ext:TextField runat="server" MaxLength="10" FieldLabel="MaxLength=10" />
    In v2 MaxLength markup property doesn't works. I can write infinite text an when I pass maxlength validation activates, but in previous v1.x versions, behaviour is that maxlength is max text that you can write.

    Is this the new behaviour or an issue?
    If is the new behaviour, is there any simple way to recover old behaviour to all textfields, textarea, ... in my app?
    Last edited by Daniil; Jun 26, 2012 at 2:21 PM. Reason: [CLOSED]
  2. #2
  3. #3
    Is there any way to setup this property true by default?
    Or I have to setup up to true to all fields in my application?
  4. #4
    Example
    Ext.form.field.Text.prototype.enforceMaxLength = true;
    It will allow to set up true by default on the JavaScript level for a separate page.

    Personally, I would prefer to set up the server EnforceMaxLength property for all fields you are using MaxLength for.
    Last edited by Daniil; Jun 26, 2012 at 2:21 PM.
  5. #5
    Ok thanks. I appreciate your suggestions.

Similar Threads

  1. [CLOSED] TextField - Maxlength
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 17, 2011, 6:20 PM
  2. [CLOSED] Textarea maxlength
    By bethc in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 23, 2009, 3:02 PM
  3. [CLOSED] MaxLength fix for TextArea
    By jsemple in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 09, 2009, 5:49 PM
  4. Replies: 4
    Last Post: Aug 10, 2009, 5:23 AM
  5. [CLOSED] should not allow text after maxlength..
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 08, 2008, 6:29 AM

Tags for this Thread

Posting Permissions