How can i send a data via post call in combo box.
help will be appreciated.
Thanks.
Hello Jason any update on the demo.
Hello Jason,
Thanks for the demo but i know how to post data in angularjs.
i want the demo for ignite ig-Combo.
thank you,
Pawan Ingale
Hello Pawan,
The igCombo is really designed for a POST operation and modifying it to do so and send data would require jumping through a few hoops. Honestly, the best approach would be to use the standard Angular httpService to trigger the post like Mike suggested earlier:
https://docs.angularjs.org/api/ng/service/$http
Here is an example of using the $http.post: http://jsfiddle.net/bkUEu/458/ Note that this is a standard approach and not anything specific to Infragistics. In the success function you could take the data that is returned and apply it to a variable in your controller for the combo. You can then bind the combo to that variable and the combo then will be able to pick up on whenever that collection is changed. For an example of binding the igCombo to a variable from an Angular controller please see the following example:
http://igniteui.github.io/igniteui-angular/samples/igCombo.html
If you have any questions about the details of this approach please let me know.
Actually not on any trigger i want to send POST call for binding data on igcombo.
I am using DataSource property and in that i am using my api url.
but i am unable to send the data to server via a POST call, is there any property avialable to send the POST call.
Demo will be appreciated.
Thank you.
When would you be triggering the POST action? Would this be as soon as you change the value of the igCombo or would you be executing this on some other trigger such as a button click? What sort of data are you looking to send over the POST call?