Success! Looks like we've fixed this one. According to our records the fix was applied for EXTGWT-1637 in 3.0 RC.
  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    129
    Vote Rating
    2
    audra is on a distinguished road

      0  

    Default ComboBox styling

    ComboBox styling


    Hi,

    I'm having trouble assigning a new appearance to a ComboBox itself... Please advise.

    TriggerFieldCell has an appearance related constructor... but none exists for ComboBox or ComboBoxCell.

    Thanks,
    Audra

  2. #2
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    To change the appearance of TriggerFieldCell and ComboBoxCell throughout your app, you'll need to do the following:
    1. Create an appearance that implements TriggerFieldCellAppearance
    2. Add a rebind rule to your module XML file

    It sounds like you already have the first half done. At this point, add a rebind rule to your module XML file:

    Code:
    <replace-with class="your.fully.qualified.appearance.class.name.Here">
      <when-type-is class="com.sencha.gxt.cell.core.client.form.TriggerFieldCell.TriggerFieldAppearance" />
    </replace-with>
    This will replace the appearance of all TriggerFieldCells and their subclasses.

    To replace the appearance of a single instance of a ComboBoxCell, you will need to subclass ComboBoxCell and set the value of the appearance field inherited from TriggerFieldCell. This can probably be done easily enough using an anonymous inner class.

    That being said, I've filed an API review ticket against the team to see whether ComboBoxCell should indeed have a constructor that accepts an appearance. This review will give us a chance to take a moment to ensure that the current design is what we intended. I'll post a reply here if we decide to make any changes.

  3. #3
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    I have added constructors to both ComboBoxCell and ComboBox that take a TriggerFieldAppearance. Change is in SVN.

  4. #4
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    This enhancement has been added in the Ext GWT 3.0 Release Candidate. Please upgrade your copy of Ext GWT and try your scenario again. While we're confident that we've addressed this issue, please reply if you notice any continued problems after upgrading. Again, thanks for taking the time to report this issue.

Thread Participants: 2