I answered to a question in the SmartClient forum (not SmartGWT) but it's just as relevant to SmartGWT. Sorry if posting it here is considered rude, I didn't know how to proceed.
The question was why the filter icon in the header of list grids, show right most if filtering is enabled, didn't allow for customization. Here's one potential use case...
If you set your grid to filterOnKeypress = true then the filter icon is essentially of no use. Clicking it issues an extra DS request that returns the same results already displayed in the grid (assuming the data in the DS didn't change). What would be useful in such cases is to replace the filter icon with a reset icon to clear all column filters at once. Of course, the icon image would have to be different too to avoid confusion.
Our customers requested such a feature in our application and looking for ways to implement that I also sought this forum.
Due to lack of an extension point the only option that came to mind was to place a custom icon/button at the exact same position as the filter icon. I'd much rather refrain from implementing such an ugly hack, though.
Cheers,
Marcel
The question was why the filter icon in the header of list grids, show right most if filtering is enabled, didn't allow for customization. Here's one potential use case...
If you set your grid to filterOnKeypress = true then the filter icon is essentially of no use. Clicking it issues an extra DS request that returns the same results already displayed in the grid (assuming the data in the DS didn't change). What would be useful in such cases is to replace the filter icon with a reset icon to clear all column filters at once. Of course, the icon image would have to be different too to avoid confusion.
Our customers requested such a feature in our application and looking for ways to implement that I also sought this forum.
Due to lack of an extension point the only option that came to mind was to place a custom icon/button at the exact same position as the filter icon. I'd much rather refrain from implementing such an ugly hack, though.
Cheers,
Marcel
Comment