A custom cell editor for FilterEditor
2 posts
• Page 1 of 1
A custom cell editor for FilterEditor
I use a standard FilterEditor for a text column. It works great but I want to show a combobox instead of a simple text field. The combobos should contain data from a custom databook.
How can I set a custom combobox?
How can I set a custom combobox?
- johnit
- Posts: 45
- Joined: Fri Nov 16, 2012 5:58 pm
Re: A custom cell editor for FilterEditor
This isn't a big problem, simply set the cell editor:
and create a simple linked cell editor:
The column name FilterEditor.SEARCH is important, because the FilterEditor reads the value from the search column and creates a condition for the right column.
- Code: Select all
filterEditor.setCellEditor(cellEditorCustom);
and create a simple linked cell editor:
- Code: Select all
cellEditorCustom = new UILinkedCellEditor(new ReferenceDefinition(
new String[] {FilterEditor.SEARCH}, rdbData, new String[] { "COLUMNNAME" })))
The column name FilterEditor.SEARCH is important, because the FilterEditor reads the value from the search column and creates a condition for the right column.
-
Support@SIB - Posts: 355
- Joined: Mon Sep 28, 2009 1:56 pm
2 posts
• Page 1 of 1