I'm using the ComboBox component and would like to restrict the values that you can manually enter into the field above the dropdown.
(See screenshot).
I have two scenarios:
1) Only allow to enter integer values (numeric, no comma or dot allowed), both negative and positive values are allowed;
2) Only allow to enter float values (numeric with comma or dot), both negative and positive values are allowed;
I tried to restrict the input by managing the keyDown event but I'm not sure if this is the right approach.
Do you maybe have an example for me, how I could better solve this?
Thanks!
Greetings,
Bernd