Results 1 to 3 of 3

Thread: Combobox: no validation after selecting

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    5
    Answers
    1

    Default Answered: Combobox: no validation after selecting

    It seems a Ext JS bug (version 4.07). After selecting value in a combo and typing several characters validation is not executed. The same trouble for Ext.form.field.ComboBox docs (directly insert in Code Editor).

    For example try:

    Code:
    Ext.create('Ext.form.ComboBox', {
        renderTo: Ext.getBody(),
        store : [
            '1pt', '2pt', '3pt'
        ],
        editable: true,
        regex: /^1pt|2pt|3pt|4pt$/,
    });
    How to sort out this issue? Thanks.

  2. Thanks Scott.

    Also I found a mistake in my regexp. It should be: /^(1pt|2pt|3pt|4pt)$/. It works now.

  3. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    You may want to look at vtypes for live validation. Your solution will check at time of submit.

    Regards,
    Scott.

  4. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    5
    Answers
    1

    Default

    Thanks Scott.

    Also I found a mistake in my regexp. It should be: /^(1pt|2pt|3pt|4pt)$/. It works now.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •