I've this part of code which creates a ComboBoxItem & sets its option datasource :
cb=new ComboBoxItem();
cb.setOptionDataSource( new cbDS() );
cb.setValueField("id");
cb.setDisplayField("name");
suppose that in first fetch, my datasource fetches some records, now when I type some statement in the combobox, it filters loaded values locally , but seems it just uses StartsWith operator to filter loaded values, for example suppose that I've fetched this 3 record using my datasource :
( 1, ABCD )
( 2, BCDE )
( 3, CDEF )
now when I type 'A' in the combobox, it filters values & just show me the first row, if I change my text to 'AB' it still works file, but when I change it to 'B' , it just shows me the second record which starts with B, but I need to get all records contains 'B' character (rows 1 & 2 in this example).
How can I do this ?
cb=new ComboBoxItem();
cb.setOptionDataSource( new cbDS() );
cb.setValueField("id");
cb.setDisplayField("name");
suppose that in first fetch, my datasource fetches some records, now when I type some statement in the combobox, it filters loaded values locally , but seems it just uses StartsWith operator to filter loaded values, for example suppose that I've fetched this 3 record using my datasource :
( 1, ABCD )
( 2, BCDE )
( 3, CDEF )
now when I type 'A' in the combobox, it filters values & just show me the first row, if I change my text to 'AB' it still works file, but when I change it to 'B' , it just shows me the second record which starts with B, but I need to get all records contains 'B' character (rows 1 & 2 in this example).
How can I do this ?
Comment