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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PivotGrid SerializedXmlString and DeserializeXmlString

Thread ID:

Created:

Updated:

Platform:

Replies:

131246 Jun 30,2017 11:22 AM UTC Jul 3,2017 01:02 PM UTC JavaScript 1
loading
Tags: ejPivotGrid
Martin R
Asked On June 30, 2017 11:22 AM UTC

Hello,

We use control PivotGridControl in WPF and we want to use the methods string SerializedXmlString() and void DeserializeXmlString(string xmlString) also on web in javascript. Is there implemented the similar solution to this? If so, please provide us the example.

Thanks a lot.

Regards,
Martin Rasovsky



Sastha Prathap Selvamoorthy [Syncfusion]
Replied On July 3, 2017 01:02 PM UTC

Hi Martin, 
 
We think that your requirement is related to serialize PivotGrid control properties to XML format and deserialize it. If so, we are sorry, we don’t have support to serialize/deserialize the control to XML format. Meanwhile, you can save the report by serializing and load it by de-serializing using “JavaScriptSerializer” at service. Please find the below conde snippet for your reference and let us know whether it is your actual requirement. 
 
Sample code(C#): 
using System.Web.Script.Serialization; 
 
namespace MVCSampleBrowser 
{ 
    public class OlapGridController : ApiController 
    { 
        //.. 
       JavaScriptSerializer serializer = new JavaScriptSerializer(); 
         
 
        [System.Web.Http.ActionName("Initialize")] 
        [System.Web.Http.HttpPost] 
        public Dictionary<string, object> Initialize(Dictionary<string, object> jsonResult) 
        { 
            //.. 
           var deSeriazedReport = serializer.Deserialize<dynamic>(temp["PivotRecords"].ToString()); // deserialize the JSON report 
            var serializedReport = serializer.Serialize(temp["PivotRecords"]); // serialize the JSON report 
            return temp; 
        } 
 
Also, we have provided detailed information for save/load report to render the PivotGrid control in our online document link below. 
 
 
Please let us know, if you have any further assistance. 
 
Regards, 
Sastha Prathap S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;