aspnet-devexpress-dot-web-dot-aspxeditbase-16368f96.md
Enables you to supply any server data that can then be parsed on the client.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public Dictionary<string, object> JSProperties { get; }
Public ReadOnly Property JSProperties As Dictionary(Of String, Object)
| Type | Description |
|---|---|
| Dictionary<String, Object> |
The collection of property names and their values.
|
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 ASPxEditBase‘s base properties.
<dx:ASPxMemo ID="mShortDesc" ClientInstanceName="mShortDescClient" runat="server">
// Specify a new property on the server side.
mShortDesc.JSProperties["cpMyAttribute"] = "1"
' Specify a new property on the server side.
mShortDesc.JSProperties("cpMyAttribute") = "1"
// After a property has been specified, you can access its value on the client side.
var i = mShortDescrClient.cpMyAttribute;
See Also