jQuery UI Widgets › Forums › General Discussions › Lists › ComboBox › auto-complete comboobx with remote search to load record by id
Tagged: auto-complete, combobox, form, jqxComboBox, submit, value
This topic contains 3 replies, has 2 voices, and was last updated by Nadezhda 11 years, 1 month ago.
-
Author
-
Hi all
I have implemented following example: demos/jqxcombobox/remotesearch.htm into an asp.net mvc Website. This works fine until here.
The auto-complete Combobox is inside a html form tag with some other controls. Now we have the Situation where the user submits the form
and the backend Returns the data because of some validation errors. On postback from Server the underliying model has the id of the prefiously selected item of the Auto-complete Combobox.
How can we force the auto-complete Combobox to reload the item by the given id, so we can Display a value in the auto-complete Combobox? Until now on postback this Combobox is empty. Is this possible?Thank you
AdrianHello Adrian,
Please, refer to the following forum topic: http://www.jqwidgets.com/community/topic/typed-value-of-combobox-not-submitted/#post-46184. I hope it will be helpful to you.
Best Regards,
NadezhdajQWidgets team
http://www.jqwidgets.com/Hi Nadeshda
Sorry, your answer is wrong and the link you referenced is not related to my Problem.
I have configured the Combobox as an auto-complete Combobox with remote data source. So after a postback from the Server the Combobox does not contain any item in ist datasource because there wasn’t yet a request to load items from the backend. Calling myComboBox.jqxComboBox(‘getItem’, myid) Returns null!
I guess there isn’t a solution for my Problem already implemented in the Combobox and I have to solve it on another way.Anyway Thank you.
AdrianHi Adrian,
We may be able to help you resolve your issue, if you provide us with a sample code.
Best Regards,
NadezhdajQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.