Hi MichalG and Blama,
Thanks for your tips.
I resolve it with listGridField.setFilterEditorProperties(TextItem.setKeyPressFilter("regex"))
regards,
Jessica
Announcement
Collapse
No announcement yet.
X
-
Sorry yes, I overread the setShowFilterEditor(true). So use the API michalg gave and a FormItem with a validator (or a SelectItem, if you know the list of values upfront).
If the validator approach does not work, try a setEditorValueParser() to null out unwanted values.
Leave a comment:
-
Originally posted by jessgarcia View PostHello,
I need a validator for "FilterEditor"
HTH
MichalG
Leave a comment:
-
Hello,
Actually that is not the answer I need. I need a validator for "FilterEditor" of the cell, like a mask for the Filter.
E.g.
On a grid I have a column, that shows integers, I want that user can only type numbers in the Column Filter of the grid.
Or a column that only shows IP's, the user should only be allow to type [0-9a-f.] chars in the column filter of the ListGrid.
That way user should not attempt to filter by values that do not even exists.
Thanks,
JessicaLast edited by jessgarcia; 11 May 2017, 01:14.
Leave a comment:
-
Hi jessgarcia,
ListGridField + setEditorProperties, the parameter is a FormItem-subclass with a validator.
Even better, if this is a client/server setting: Define a validator on the field in your .ds.xml-file for the DataSource the ListGrid is using.
Best regards
Blama
Leave a comment:
Leave a comment: