Hi there,
we are using smartGWTPro 4.1 and have experienced a peculiar case with ListGrid's FilterEditor.
We're using the FilterEditor with a TextItem, which has an KeyUpHandler that triggers filtering with the FilterEditor's criteria combined with some user criteria obtained from a series of CheckBox'es.
This is why we use this setup instead of just using ListGrid.setFilterOnKeypress(true) for the FilterEditor...
Anyway - it works as we would expect when running in the debugger: when we type in the filterEditor the filtering is triggered with the FilterEditor's value as criteria and when completed the TextItem is still in focus (and the value is NOT selected).
But when we compile the application and run it in a production setup - the text value in the FilterEditor is selected after the filtering :/
Why this difference and how do we unselect the text value in the FilterEditor??
We've tried using deselectValue() on the TextItem (inside a FocusHandler), but oddly it throws an exception:
Maybe we've missed something in the API docs - but still that doesn't explain the different behavior between debugger/compiled mode :/
we are using smartGWTPro 4.1 and have experienced a peculiar case with ListGrid's FilterEditor.
We're using the FilterEditor with a TextItem, which has an KeyUpHandler that triggers filtering with the FilterEditor's criteria combined with some user criteria obtained from a series of CheckBox'es.
This is why we use this setup instead of just using ListGrid.setFilterOnKeypress(true) for the FilterEditor...
Anyway - it works as we would expect when running in the debugger: when we type in the filterEditor the filtering is triggered with the FilterEditor's value as criteria and when completed the TextItem is still in focus (and the value is NOT selected).
But when we compile the application and run it in a production setup - the text value in the FilterEditor is selected after the filtering :/
Why this difference and how do we unselect the text value in the FilterEditor??
We've tried using deselectValue() on the TextItem (inside a FocusHandler), but oddly it throws an exception:
Code:
self.deselectValue is not a function
Comment