Back to Devexpress

ASPxPivotGrid.JSProperties Property

aspnet-devexpress-dot-web-dot-aspxpivotgrid-dot-aspxpivotgrid-31b7a915.md

latest2.3 KB
Original Source

ASPxPivotGrid.JSProperties Property

Enables you to supply any server data that can then be parsed on the client.

Namespace : DevExpress.Web.ASPxPivotGrid

Assembly : DevExpress.Web.ASPxPivotGrid.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public Dictionary<string, object> JSProperties { get; }
vb
Public ReadOnly Property JSProperties As Dictionary(Of String, Object)

Property Value

TypeDescription
Dictionary<String, Object>

The collection of property names and their values.

|

Remarks

In some instances, it is necessary to obtain server information on the client. The JSProperties property enables you to declare temporary client properties. The JSProperties property represents a collection of property names and their values. Once declared, a property can be accessed on the client.

Note

The only requirement is that property names must begin with the ‘cp’ prefix, to avoid rewriting the ASPxPivotGrid‘s base properties.

csharp
ASPxPivotGrid1.JSProperties["cpTabIndex"] = ASPxPivotGrid1.TabIndex;
javascript
<input id="Button1" type="button" value="Tab Index" onclick="alert(grid.cpTabIndex)" />

See Also

CustomJsProperties

Passing Values from the Server to the Client

ASPxPivotGrid Class

ASPxPivotGrid Members

DevExpress.Web.ASPxPivotGrid Namespace