Hello everybody!
I'd like to show an explanatory tooltip when user hover on FilterEditor cells of a ListGrid. I tried to follow suggestions posted on this thread, http://forums.smartclient.com/archive/index.php/t-17082.html, but without any success.
1) I had to use a DrawHandler because Dev Mode always complained that FilterEditor was null when I tried to access it, in this way I verified I can use it without any error; if there is a better way, please let me know
2) I also try to use filter.setHint and filter.setTooltip, without any effect
SmartGwt Version: 4.0
Browser version: firefox v 24.0
Thanks in advance for answers
I'd like to show an explanatory tooltip when user hover on FilterEditor cells of a ListGrid. I tried to follow suggestions posted on this thread, http://forums.smartclient.com/archive/index.php/t-17082.html, but without any success.
Code:
ListGrid grid = new ListGrid();
grid.setAutoFetchData(true);
grid.setWidth100();
grid.setHeight100();
grid.setSelectionType(SelectionStyle.SINGLE);
grid.setShowFilterEditor(true);
grid.setAllowFilterExpressions(true);
grid.addDrawHandler(new DrawHandler() {
@Override
public void onDraw(DrawEvent event) {
ListGridField[] fields = grid.getFilterEditor().getFields();
for (int i = 0; i < fields.length; i++) {
TextItem filter = new TextItem();
filter.setPrompt("Test");
fields[i].setFilterEditorProperties(filter);
}
}
});
2) I also try to use filter.setHint and filter.setTooltip, without any effect
SmartGwt Version: 4.0
Browser version: firefox v 24.0
Thanks in advance for answers
Comment