Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • Isomorphic
    replied
    The "comboBox" autoChild of MultiComboBox is a ComboBox instance, not a label or similar.
    So - you want to create a template ComboBox and call setHint on that.
    Then you want to use changeAutoChildDefaults() to apply this template to the "comboBox" autoChild of multiComboBox.

    Leave a comment:


  • divakar
    replied
    I tried following:

    MultiComboBoxItem.changeAutoChildDefaults("comboBox", new Label(""));
    MultiComboBoxItem.changeAutoChildDefaults("hint", new Label(""));
    MultiComboBoxItem.changeAutoChildDefaults("comboBoxItem.hint", new Label(""));

    ComboBoxItem.changeAutoChildDefaults("comboBox", new Label(""));
    ComboBoxItem.changeAutoChildDefaults("hint", new Label(""));
    ComboBoxItem.changeAutoChildDefaults("comboBoxItem.hint", new Label(""));

    nothing out of the 6 worked.

    How can i get rid/change the default "Enter values" message?

    Leave a comment:


  • Isomorphic
    replied
    They're labelled right in the docs - search for "AutoChild" on any given component's page.

    Leave a comment:


  • edulid
    replied
    Thanks, that was the problem.

    Where can you read which AutoChilds are available for each item? In the AutoChildUsage docs there is the AutoChild "header", here you mentioned the AutoChild "comboBox",... but where can you find a list of the AutoChilds of each item?

    Leave a comment:


  • Isomorphic
    replied
    Set comboBoxItem.hint on the "comboBox" AutoChild.

    There is no AutoChild named "hint".

    Leave a comment:


  • edulid
    replied
    I would like to do it system-wide. So I wrote:

    final Label properties = new Label("new text");
    MultiComboBoxItem.changeAutoChildDefaults("hint", properties)

    But nothing happens.
    What am I doing wrong?

    Leave a comment:


  • Isomorphic
    replied
    It's the hint on the ComboBox AutoChild. You can either change it per-instance or system-wide - see the AutoChild overview in the docs for details.

    Leave a comment:


  • edulid
    replied
    Still nothing. Isomorphic?

    Using smartgwt 4.0 power.

    Leave a comment:


  • OlegT
    replied
    Originally posted by edulid View Post
    Still haven't found how to change the message. Anyone?
    May be my experience will help.
    I'm trying SmartClient(not SmartGWT), but think, that you can do the same.
    I've played some time with JS debugger and figured out that it use comboBoxDefaults property.
    So I just copy values to create multicomboitembox section of my script something like this:

    name:"units",
    showTitle:false,
    optionDataSource:"measureOptions",
    editorType:"MultiComboBoxItem",
    comboBoxDefaults:{
    "hint":"my_hint",
    showTitle:false,
    showHintInField: true,
    completeOnTab:true,
    width:"*",
    shouldSaveValue:false,
    editorType:"ComboBoxItem"
    }

    and it works for me.

    Leave a comment:


  • edulid
    replied
    Still haven't found how to change the message. Anyone?

    Leave a comment:


  • edulid
    started a topic MultiComboBoxItem "Enter Values" Message

    MultiComboBoxItem "Enter Values" Message

    How can I change the "Enter Values" Message in a MultiComboBoxItem? Changing the hint doesn't change the message.

    http://www.smartclient.com/smartgwt/showcase/#multicombobox_category_new

    Using SmartGWT 3.1p.
Working...
X