Results 1 to 3 of 3

Thread: ComboBox error icon problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext User
    Join Date
    Jan 2009
    Posts
    1
    Vote Rating
    0
      0  

    Default ComboBox error icon problem

    Could someone find why the error icon was missing in comboBox. The combobox field has setAllowBlank set to false. I put field.addStyleName("x-form-invalid"); and field is red colored after that, but icon is missing. Please see pic attached. How could I put errorIcon manually?
    Attached Images Attached Images

  2. #2
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    50
    Vote Rating
    1
      0  

    Thumbs up

    Check the API docs for your release (http://www.extjs.com/deploy/dev/docs....ComboBox.html) But I think you need to call 'markInvalid(message)' - that'll show the icon.

    Hope that helps!

  3. #3
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    50
    Vote Rating
    1
      0  

    Default

    I have a slightly different problem, which is that we're trying to create our own icon and tooltip, very similar to the 'invalid' one - but I can't work out where to place our new icon in the DOM so it'll lay out consistently for different types of fields (comboboxes, checkboxes etc) - they all seem to use different names for the same parts of the control (x-form-field-wrap / x-form-field-wrap-inner, sometimes no wrapper). could anyone help with suggestions of how to put our own icon on instead of the built in 'invalid' icon?

Posting Permissions

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