dhx.ui.combo store current displayed text


Can I access currently displayed text of a combo component?
The situation not as simple as sounds first. I want to use combo component for browse existing options OR INSERT NEW ONE to server side db.

When user type text which doesn’t exist in db the combo value will be empty string. I understand and accept this behaviour but I want access text which user typed and not exist yet in db.

I want to store it, and next time it should be appear in item list.


Combo has getInput method that gets input element. So, you can try to use the following approach:

var comboValue = $$(“comboId”).getInput().value;

It’s working as I expected.

Thank You!

You are welcome