How can i send a data via post call in combo box.
help will be appreciated.
Thanks.
Hello Pawan,
Which platform are you using? eg. ASP.Net or Ignite UI (jquery controls)
Hello Michael,
First of all thank you for replying.
actually i am using angularJS so if possible can u give me the suggestion related to that platform.
if not then i will prefer with Jquery control.
Thank You.
Hello Jason any update on the demo.
I've reread this thread and there are a few things I'm unclear on. What sort of data are you posting to the server and how does this influence the combo's behavior? What sort of action causes that post. How are you setting up the combo to bind to the data that comes back and what have you tried so far?
The example of the igCombo on the Ignite UI Angular github site provides the general approach for binding the igCombo to data provided through the controller. If you wanted to use a post to send and retrieve data from your server then you would use the standard Angular approach for doing that; nothing special needs to be done with the combo. Once you have the data back from the server in your success handler you would pass that data to the variable in the controller that the combo is bound to. Is there any issue you are having with that approach? What sort of behavior are you seeing?
Hello Jason,
sorry that you are not able to understand what i am trying to explain you.
but in simple language i am using ignite's Datasource property to access my rest service with that i want pass one object with that just like jquery's data property.
So if you now got understood than please help me out by giving a simple demo using ignite's Datasource property sending one object with it.
It is important to note that the igCombo itself is just going to try to send a standard GET request to whatever URL you provide to the dataSource setting. If you want to send data over in the request then you are better off using the standard $.ajax call for jQuery. Then, in the success function you would set the dataSource of igComob instead of setting it initially to your URL.
I have attached a small sample with this update. In the sample I'm using Mockjax to set up a fake webservice that simply returns different arrays. In my ajax call you can see I'm passing over some data and in the success function I call $('combo selector').igCombo('option', 'dataSource', data) which sets the data as I need on the igCombo. In theory you could even take this one step further if needed and instantiate the combo completely in the success handler, but this may give your page the appearance of the combo suddenly appearing from nowhere if there is any latency on your service.
Please let me know if you have any questions or concerns about this implementation.
Thank's Jason for providing demo.
Though i am not satisfied with this functionality of ig-combo.
Can i know the reason that why i cannot post the data with igcombo, and if i can then what are the steps to do that.
Thank you,
Pawan Ingale.
Posting data on the initial bind of the igCombo was not in the design requirements for the control. I am sorry you are not satisfied, though if you would like to have this behavior considered for future implementation you may submit it to the Infragistics Product Idea page.