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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Saving the state of PivotSchemaDesigner

Thread ID:

Created:

Updated:

Platform:

Replies:

123373 Mar 11,2016 11:39 AM UTC Mar 14,2016 06:58 AM UTC ASP.NET Web Forms 1
loading
Tags: PivotGrid
Jorge Pampin
Asked On March 11, 2016 11:39 AM UTC

Hello,

I want to save the state of the PivotSchemaDesigner control: columns, rows, calculations and filters. I'v tried with the properties.

  1. PivotSchemaDesigner.model.pivotRows
  2.  PivotSchemaDesigner.model.pivotColumns
  3.  PivotSchemaDesigner.model.pivotCalculations
  4. PivotSchemaDesigner.model.filters
But, these propeties don't have the correct values when you make some changes in the PivotSchemaDesigner control: changes rows by columns, columns by filters....

How to access to the correct rows, columns, calculation and filters values?

Thanks!

Ramesh Govindaraj [Syncfusion]
Replied On March 14, 2016 06:58 AM UTC

Hi Jorge,

Thank you or using Syncfusion products.

We have prepared a PivotGrid sample where you can get the current state of PivotTable Field list. Please refer to the sample and code example in below.

Sample :  http://www.syncfusion.com/downloads/support/directtrac/123373/ze/PivotFieldList-1412952369

Code :

[.aspx]


<ej:PivotGrid ID="PivotGrid" Url="" runat="server" ClientIDMode="Static">


        ////

       

<ClientSideEvents Load="onLoad"  RenderSuccess="loadSchemaDesigner"/>


        ////
   
</ej:PivotGrid>


function loadSchemaDesigner(args) {


    $("#PivotSchemaDesigner").ejPivotSchemaDesigner({ pivotControl: this, layout: ej.PivotSchemaDesigner.Layouts.Excel });

    args.model.renderComplete = null;


   // You can get your current report here in run-time.

    var column = _proxy.model.dataSource.columns;

    var row = _proxy.model.dataSource.rows;

    var filter = _proxy.model.dataSource.filters;

    var values = _proxy.model.dataSource.values;

}


Regards,
Ramesh G.

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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

;