jQWidgets Forums
jQuery UI Widgets › Forums › Getting Started › Problem with jqxComboBox
Tagged: #combobox, jqwidgets combobox
This topic contains 8 replies, has 3 voices, and was last updated by Manu Vashishtha 5 years, 3 months ago.
-
AuthorProblem with jqxComboBox Posts
-
Dear Sir/Ma’am
I am facing problem with jqxcombobox. When I want to add any different value in jqxcombobox then it is not returning the same value.
Please check my example:— http://jsfiddle.net/manuvashishtha/ytap6qm7/5/I want to add value “bi” but when I am getting value then it is returning me “Bicerin”.
If searchMode is set to be ‘none’ then the autocomplete panel is not shown. I need both options..
My client wants to add new values and also want to see already existing matching values.
Is there any way to do this?Thanks & Regards
Manu Vashishtha
Software DeveloperHi Manu,
You can use the addItem method to add new items to the combobox.
$("#jqxComboBox").jqxComboBox('addItem', { label: 'Text' value: 'Id'} );
Regards,
PeterHello Sir,
This is not a solution of my problem.
Please check my example: Click here for examplee.g.:– I am adding “Bre” in the inputbox but when getting value on button click then it is showing “Breve” in the alert.
bcoz “Breve” is getting selected automatically. I don’t need selected item , I want to get text added in the inputbox.I need edit and search both options. Please check.
Regards
Manu VashishthaHi Manu,
Have you looked at jqxInput? Example: https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxinput/defaultfunctionality.htm?light. When you type something for example: “bul”, auto-complete dialog pops up with suggestions such as “Bulgaria”. However, if you click outside of the Input and the Auto-Complete dialog, the value will be “bul”, not “Bulgaria”.
Regards,
PeterHello Sir,
Thank you for your response.
I have checked jqxInput, but this is not meeting my requirement.
Actually, I need combobox along with autocomplete, I have to show all the items to user before filtration like jqxcombobox.Regards
Manu VashishthaHi Manu
The combobox cannot handle your case. jqxInput is with more similar behavior. If you have a developer or team license you can customize the combobox code to fit to your requirements. We can also do that as a custom development service
Regards
PeterHello Sir
Just want to confirm from your side that the way I want to perform this is :–
var value=$(‘#jqxComboBox’).find(‘.jqx-combobox-input’).val();I am getting value of textbox always, bcoz I need only text from combobox.
This is a good practice or not, or this can create any problem for me later?Thanks & Regards
Manu VashishthaHi Manu
You can get the typed value by the user by using the code you published. This should be OK.
Regards
PeterOkay. Thank you.
-
AuthorPosts
You must be logged in to reply to this topic.