jQuery UI Widgets › Forums › General Discussions › Lists › ComboBox › reload dropdownlist in jqxComboBox from ajax source
This topic contains 5 replies, has 2 voices, and was last updated by douglas168 7 years, 11 months ago.
-
Author
-
Hi,
I got a jqxComboBox that loads from ajax source. How do I fire up the jqxCombox to reload from source after the form has been submitted so that the dropdownlist shows the updated list?
Appreciate the help!
Hello douglas168,
Please, take a look at this example.
You could use the mentioned approach when you received the new data successfully just set it to the source of the ComboBox.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comThank you Hristo! Appreciate the help!
Hi Hristo,
I tried your suggestion. It is not quite what I was hoping for. The source (from url source) remains the same. I just need the jqxComboBox to ‘refetch’ from the source again. For example, say the jqxComboBox has dropdown list of ‘1,2,3’ (pulling from db). Because the form has been submitted, the db now has ‘1,2,3,4’, I need the jqxComboBox dropdownlist to show ‘1,2,3,4’. Is there a way to do this?
Appreciate the help!
Hello douglas168,
We do not such example but you could use the same approach.
With an AJAX ‘call’ you could get the new data source from submitted data and set it again to the jqxComboBox’s source.
Also, I would suggest you look at these demos:
https://jspexamples.jqwidgets.com/examples/combobox.htm?light
https://www.jqwidgets.com/jquery-widgets-demo/demos/php/cascadingcombobox.htm?light
https://www.jqwidgets.com/jquery-widgets-demo/demos/aspnetmvc/index.htm#https://mvcexamples.jqwidgets.com/widgets/comboboxBest Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comAppreciate the help!
-
AuthorPosts
You must be logged in to reply to this topic.