Skip to content

Commit 17f3aea

Browse files
committed
docs:(pivotgrid) Add note for sessionstate
1 parent f50fa8a commit 17f3aea

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

controls/pivotgrid/caching.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,5 @@ Note that in case you need to remove the model from the session you just should
3030
Session[RadPivotGrid1.UniqueID] = null;
3131
````
3232

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-
````
38-
39-
The stored state object of type *Telerik.Web.UI.PivotGrid.Core.ViewModels.PivotViewModel* is not defined as [Serializable] in its implementation.
40-
41-
````C#
42-
...
43-
internal class PivotViewModel : IPivotViewModel
44-
{
45-
private IDataProvider dataProvider;
46-
private IGroupDescription valuesDescription;
47-
48-
public PivotViewModel()
49-
{
50-
this.GrandTotalText = PivotLocalizationManager.GrandTotal;
51-
this.ValuesGroupText = PivotLocalizationManager.Values;
52-
...
53-
````
54-
Therefore, when using SQLServer mode the *SessionState* will not be saved.
33+
>note Caching is not supported when using `sessionState` modes requiring the object to be Serializable.
34+
When using SQLServer mode the *SessionState* will not be saved.

0 commit comments

Comments
 (0)