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

Combobox smart update emptySearchMessage doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 10.2.0
    • 8.5.1.3
    • None

      Steps to Reproduce

      <zk>
         <label multiline="true">
            1. click button to update empty search message.
            2. type 'a', should see 'No suggestions'.
         </label>
      
         <combobox id="combo" autodrop="true" emptySearchMessage="empty..."/>
         <button label="update emptySearchMessage" onClick='combo.setEmptySearchMessage("No suggestions");'/>
         <zscript>
            String[] items = {
              "item 1", "item 2"
            };
            ListModel dictModel = new SimpleListModel(items);
            combo.setModel(dictModel);
         </zscript>
      </zk>
      

       

      Current Result

       Empty search message is "empty...".

      Expected Result

       Empty search message is "No suggestions". 

       

            katherinelin katherinelin
            katherinelin katherinelin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: