This is a migrated thread and some comments may be shown as answers.

Why does the PivotGrid Postback so often?

2 Answers 48 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Brent Hetland
Top achievements
Rank 1
Brent Hetland asked on 27 Aug 2015, 03:31 PM

Hi,

I use the 2015.1.401.40 version of your ASP.NET for AJAX controls.

If it matters, I'm currently binding it to a SQLDataSource.

From what I see, the entire PivotGrid does a PostBack when you:

- click a filter to display the Filter Popup

- expand or collapse a row or column field to show or hide detail

Why does it postback???  When I expand a row to show detail, and then collapse it, there is no reason to post back.  I'm not even rebinding on postback.  Why doesn't the control just use javascript to hide the detail.

The same with the filter popup... when you click the filter icon, why not just display a div that you could have put in the page when the control was initially bound?  Why do a postback to then just display the filters in a popup?

Am I missing something or doing something wrong?  Most of you other controls (hierarchical grid or grid with grouping​), they are able to hide / show children or grouped rows on the client.  Why doesn't the pivot grid?

Thanks,

Brent

2 Answers, 1 is accepted

Sort by
0
Brent Hetland
Top achievements
Rank 1
answered on 27 Aug 2015, 05:21 PM

You can disregard this.  I realize that this is a server side control which has to do stuff both with the layout / structure of the pivot grid as well as with the aggregation...  I have also seen the Kendo UI Pivot Grid, which I assume doesn't do fully postbacks.

 

This can be closed.

0
Eyup
Telerik team
answered on 01 Sep 2015, 05:55 AM
Hi Brent,

Yes, your assumptions are correct. However, you can also greatly improve this performance by using AJAX on your page:
http://docs.telerik.com/devtools/aspnet-ajax/controls/ajax/radajaxmanager/overview

You can check various demos for its practical implementation:
http://demos.telerik.com/aspnet-ajax/pivotgrid/examples/calculations/defaultcs.aspx

Hope this helps.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
PivotGrid
Asked by
Brent Hetland
Top achievements
Rank 1
Answers by
Brent Hetland
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or