I  have an requirement to search the values in ComboBox , either
search by code or description

eg.

in Below gwt-ext  ComboBox example

in Combobox  it searches by only states , but i want  search by "abbr"
also




 public void onModuleLoad() {
         Panel panel = new Panel();
         panel.setBorder(false);
         panel.setPaddings(15);

         final Store store = new SimpleStore(new String[]{"abbr",
"states"}, getStates());
         store.load();

         ComboBox cb = new ComboBox();
         cb.setMinChars(1);
         cb.setFieldLabel("State");
         cb.setStore(store);
         cb.setDisplayField("states");
         cb.setMode(ComboBox.LOCAL);
         cb.setEmptyText("Enter State");
         cb.setLoadingText("Searching...");
         cb.setTypeAhead(true);
         cb.setSelectOnFocus(true);
         cb.setWidth(200);
         //do not show drop fown icon
         cb.setHideTrigger(true);

         FormPanel form = new FormPanel();
         form.setLabelWidth(35);
         form.setBorder(false);
         form.add(cb);

         panel.add(form);

         RootPanel.get().add(panel);
     }

     private static String[][] getStates() {
         return new String[][]{
                 new String[]{"AL", "Alabama", "The Heart of
Dixie"},
                 new String[]{"AK", "Alaska", "The Land of the
Midnight Sun"}


         };
     }
 }

how to write filter , and queries on Combox?

please help mee


thanks in advance

Regards
surya.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to