Hi all,
I have two questions:
1) I am trying to bind a DataSet returned from a server service method to an igHierarchicalGrid. So I tested it first on the client side by using an xml string directly. The binding of the parent record is ok. However child level binding is failed. I just don't know how to specify child object schema inside parent xml schema or if there is another way. I will attach my sample code. Please let me know how to correct it.
2) If I use ajax call to get the DataSet returned from a web service method, then binding xml data to the control, how do I do binding in this case? say getXml from the xml stream etc.
$.ajax({type: "post",url: "mywebservicemethod",dataType: "xml",success: function(xml) {
//binding data to igHierarchicalGrid
}
thanks so much
Hello bettysun,
Thank you for posting in the community.
I am currently researching your scenario and wil keep you posted of my progress. In the meantime I would suggest that you consider sending your data as json if at all possible. This would make the task of databinding the grid much more straightforward.
Hi Petar,
I tested it with dataType: "json" in ajax call using the same data returned from the webservice method. It's not working. BTW: I have multiple "CustomerInfo" records in the DataSet.
When I debug it, the response.text message is "A circular reference was detected while serializing an object of type \u0027System.Globalization.CultureInfo\u0027.",
xhr.statusText is "Internal Server Error".
It probably is caused by the complex object. The parent/child probably references in a circular way during serialization.
but I don't know what I can do with it.
Thanks,
Betty