ASPxTreeView.JSProperties Property
Allows you to pass data from the server to the client side.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
Dictionary<String, Object> | The collection of property names and their values. |
Remarks
The JSProperties
property allows you to pass a collection of name/value pairs from the server side to the client side (but not vice versa). A property can be accessed on the client side once it is declared. The only requirement is that property names must begin with the cp
prefix (client property) to avoid rewriting a control’s base properties.
The following value types are supported:
- null
- DBNull
- ValueType
- string
- IDictionary
- IEnumerable
<dx:ASPxTreeView ID="dxTreeView" ClientInstanceName="tree" runat="server">
// Specify a new property on the server side.
dxTreeView.JSProperties["cpMyAttribute"] = "1"
// After a property has been specified, you can access its value on the client side.
var i = tree.cpMyAttribute;
For more information, see the following topic: Passing Values Between Client and Server Sides
See Also