SmartGWT 5.0-p20150906. I have been scratching my head on this all night now, so i give up and hope that i can get some pointers here...
I have a comboboxitem i'm using to filter a listgrid. The code to create it is like this:
It works fine, and the dropdown is populated from the datasource i specify as optiondatasource.
However, say there are 20 items. I start typing 'p' and it filters correctly, so that only 2 items are displayed. I then type another 'p' - and all 20 items are displayed again! If i erase all text and start over, nothing happens, all items are displayed. If i reload the page, i can do the same thing again - after the first keypress, all items are displayed.
I'm out of ideas. Anybody have any clue as to what i might be doing wrong?
I have a comboboxitem i'm using to filter a listgrid. The code to create it is like this:
Code:
comboBox = new ComboBoxItem(displayFieldToUse, title); comboBox.setValueField("id"); comboBox.setDisplayField(displayFieldToUse); comboBox.setOptionDataSource(ds); comboBox.setAutoFetchData(true); comboBox.setAddUnknownValues(false); comboBox.setWidth(100);
However, say there are 20 items. I start typing 'p' and it filters correctly, so that only 2 items are displayed. I then type another 'p' - and all 20 items are displayed again! If i erase all text and start over, nothing happens, all items are displayed. If i reload the page, i can do the same thing again - after the first keypress, all items are displayed.
I'm out of ideas. Anybody have any clue as to what i might be doing wrong?
Comment