You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: controls/pivotgrid/caching.md
+23-4Lines changed: 23 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,15 @@ position: 11
12
12
13
13
14
14
15
-
**RadPivotGrid**’s aggregate calculations and grouping are driven by a powerful data engine which produces a special pivot view model. The latter feeds the aggregate values into the final output by the control. At times, however, when the data to be aggregated is quite large, the creation of the pivot view model can get pretty demanding in terms of CPU resources. In order to avoid the recalculation of large data that does not change very often, RadPivotGrid allows the caching of the pivot view model into the session state.
15
+
**RadPivotGrid**’s aggregate calculations and grouping are driven by a powerful data engine which produces a special pivot view model. The latter feeds the aggregate values into the final output by the control. At times, however, when the data to be aggregated is quite large, the creation of the pivot view model can get pretty demanding in terms of CPU resources. In order to avoid the recalculation of large data that does not change very often, **RadPivotGrid** allows the caching of the pivot view model into the session state.
16
16
17
-
##
17
+
##
18
18
19
19
Caching is enabled through the **EnableCaching** property of the control. For large sets of data using it will result in considerable speed up of any operations that require the rebinding of the pivot grid.
20
20
21
21
However, there are trade-offs that should be carefully considered before opting for the employment of this feature:
22
22
23
-
***Memory consumption** is very likely to increase significantly if the web page where RadPivotGrid is placed on experiences intense traffic.
23
+
***Memory consumption** is very likely to increase significantly if the web page where the **RadPivotGrid** is placed in experiences intense traffic.
24
24
25
25
* There is evidently **no guarantee the data to be displayed will be up-to-date.**
26
26
@@ -30,6 +30,25 @@ Note that in case you need to remove the model from the session you just should
30
30
Session[RadPivotGrid1.UniqueID] =null;
31
31
````
32
32
33
+
Caching is not supported when using <code>sessionState</code> modes requiring the object to be Serializable, e.g.:
34
+
````ASP.NET
35
+
<sessionState mode="SQLServer">
36
+
</sessionState>
37
+
````
33
38
39
+
The stored state object of type *Telerik.Web.UI.PivotGrid.Core.ViewModels.PivotViewModel* is not defined as [Serializable] in its implementation.
0 commit comments