We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Serializing the Grouping.Engine/Table

Hi,
we would like to use the Syncfusion.Grouping.Engine in a Web Service to process (group and sort) a DataTable and then serialize the formatted data into xml/json and send it back to the client. Is there a way to serialize the resulting data structure automatically? From what I have read about the GridGrouping, the controls seem to work that way.

What I am looking for is something like this:

DataTable reportData = GetRawReportData(report);

Engine engine = new Engine { RecordAsDisplayElements = true };
engine.TableDescriptor.GroupedColumns.Add("City");
engine.TableDescriptor.SortedColumns.Add("LastName");
engine.SourceListSet.Add(reportData);
engine.SetSourceList(reportData.DefaultView);
engine.Table.ExpandAllRecords();

XmlSerializer serializer = new XmlSerializer(typeof (Table));
serializer.Serialize(HttpContext.Response.OutputStream, engine.Table);

Best Regards


1 Reply

KB Kalaiarasan B Syncfusion Team February 1, 2012 12:19 PM UTC

Hi Marc,

Thank you for your interest in Syncfusion products.

We have no support for Grouping in ASP.NET, MVC. We have already logged this as a feature request in our database. We will implement this feature in any of our upcoming releases. We usually have an interval of at least three months between releases. The feature implementation would also greatly depend on the factors such as product design, code compatibility and complexity.

We will let you know once this feature has been implemented.

Please let me know if you have any further concerns.

Regards,
Kalai


Loader.
Live Chat Icon For mobile
Up arrow icon