Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-403

Set a model to combobox when opening, the dropdown will not show the items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.9
    • 5.0.8
    • Components
    • None

      <zk>
      <zscript><![CDATA[
      String[] dictionary =

      { "abacus", "abase", "barcarole", "barefaced", "cadence", "cadenza", "death's-head", "debacle", "endear", "endemic", "endue", "facial", "facile", "facilitate", "gaiety", "gaily", "gainsay", "writhe", "writing", "wry", }

      ;

      ListModel dictModel= new SimpleListModel(dictionary);
      ]]></zscript>
      <div>
      1. type 'a', the dropdownlist shall show 2 items.
      </div>
      <combobox autodrop="true" >
      <attribute name="onOpen"><![CDATA[
      self.setModel(dictModel);
      ]]></attribute>
      </combobox>
      </zk>

            jumperchen jumperchen
            jimmyshiau jimmyshiau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: