Back to Devexpress

ASPxGantt.JSProperties Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-aspxgantt-2adb4ceb.md

latest2.0 KB
Original Source

ASPxGantt.JSProperties Property

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

Namespace : DevExpress.Web.ASPxGantt

Assembly : DevExpress.Web.ASPxGantt.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

Use the JSProperties property to declare temporary client properties when it is necessary to obtain server information on the client. The JSProperties property represents a collection of property names and their values.

Note

Property names must begin with the ‘cp’ prefix.

aspx
<script type="text/javascript">
    alert(clientGantt.cpText);
</script>
...
<dx:ASPxGantt ID="ASPxGantt1" runat="server" ClientInstanceName="clientGantt">
    ...
</dx:ASPxGantt>
csharp
ASPxGantt1.JSProperties["cpText"] = "custom_text";

See Also

ASPxGantt - 'How To' Examples

Callbacks

ASPxGantt Class

ASPxGantt Members

DevExpress.Web.ASPxGantt Namespace