Hi,
Can JSON be used for Server Side Integration for Retrieving and Adding Data to SQL Server.
Can someone please help with this.
thanks
Hi DayanaArul,
Thank you for posting in our forums!
Could you please clarify a little more on what exactly you mean by using JSON to integrate and retrieve data?
If you are asking how to send data from the igCombo to the server, you could create an Ajax call and send data from the igCombo to the server to work with. Please see the sample I have attached to this post for a demonstration of this.
When pressing the "Update" button on the page, the currently selected item in the igCombo is sent to the UpdateData Action on the server, where it can be used to update or retrieve data from a database.
If you need further assistance with this, please let me know and I will be glad to help.
I am not able to run your sample application. My problem is, I have used igCombo with JSON binding. I want to pass the selected value of combo to the server. how to get it.
I have used below code for json igcombo binding.
$(function () {
$("#igHC").igCombo({
dataSource:"/Handler3.ashx",
valueKey:"HCCode",
textKey:"HC",
dataSourceUrl:"/Handler3.ashx",
responseDataKey:"data2",
width:"300px"
});
Can you please help to pass the selected combo value to server?
Hi, Dayana.
You can check this sample, which uses the ComboFor method. ComboFor creates hidden input that holds the value and then send it to the server - it's done inside the control and you don't need to handle it by yourself. Then you receive the value on the server (you can check the UsingAspNetMvcHelper action method). After that you can use this value and save to whatever you want. I hope this can help you. For any further questions don't hesitate to ask.
Best regards,
Nikolay Alipiev
Please let us know if you need further assistance with this issue and we will be glad to help.
I have used mvc framework to retrieve data to server side. Thank you so much for your kind hlep
Hello DayanaArul,
Please let me know if you have any other questions or concerns about this issue and I'll be glad to help you.
The IgniteUI controls are based on client side interactions rather than being server based. As you are using ASP.NET WebForms, I would recommend adding a hiddenfield to your page to store the value of the igCombo.
You can handle the selectionChanged event of the igCombo and set the value to the hiddenfield. This will allow you to retrieve the currently selected value from the hiddenfield on the server once a postback occurs.
You can find more information on the igCombo events and the API in our documentation here:
http://help.infragistics.com/jQuery/2013.2/ui.igcombo
As for how to proceed with your project, as I mentioned at the beginning of this update, the IgniteUI controls are heavily client based. We do provide our separate ASP.NET WebForms based controls. Depending on how server-centric and how familiar you are with WebForms, you may decide that our WebForms controls are more suited for your purposes. I would recommend staying with the IgniteUI controls, which would require some functionality such as the hiddenfield to send data back to the server on a postback.
You can find more information (and examples at the bottom) on our WebForms controls here:
http://ko.infragistics.com/products/aspnet/
If you need further assistance with this, please let us know.
When we use the igCombo with classic web forms, we are ofcourse, able to bind to the combo box. But, we would like to know how to fetch the selected value from the combo box in the server side.
Also, we would like to know this igCombo control is tightly coupled with ASP.NET MVC. But, we have built our system using ASP.NET. What is the ideal solution to work with Infragistics controls. Should we need to migrate to ASP.NET MVC? Are there any workarounds?