Drop-down that allows entering text

QuestionsDrop-down that allows entering text
Greg asked 9 years ago

Hi,

Is there a control, or a way to integrate one, that can be a drop-down, but allow a person to type in a value in that view to be saved?

Something similar to this – http://jqueryui.com/autocomplete/#combobox – but that the value can be saved.

Thanks – Greg

5 Answers
Greg answered 9 years ago

Hi,

And/or another way I was just thinking that I could solve my problem, is there a way that I could open a custom window/pane that let the user either choose the value from a dropdown and/or enter their own value?

Thanks – Greg

Abu Ghufran answered 9 years ago

You can use autocomplete control, that allow entering value and suggest options like dropdown while you type.
Refer demos/integration/autocomplete.php

pcattani answered 3 years ago

Any ideas on how to show all potential values for autocomplete?   Maybe some Javascript which uses onFocus to show all the values?

pcattani answered 3 years ago

OK, I managed to hack autocomplete so it works like a Combobox:

 

$col[“editoptions”][“onfocus”] = “$( ‘#office’ ).autocomplete( { search: ”, minLength: 0 } );”;

 

This will display all potential values of autocomplete when the field contains no next.

 

Reference:  https://api.jqueryui.com/autocomplete/

Abu Ghufran Staff answered 3 years ago

Thanks for the update.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

1 + 16 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?