ComponentOne Scheduler for ASP.NET: Client-Side Functionality in Scheduler for ASP.NET AJAX > Client-Side Properties

Client-Side Properties

The following conventions are used when accessing the client object properties:

      Server properties on the client are implemented as a pair of Get- and Set- methods.

      Method names must start with "get_" (Get-method) and "set_" (Set-method) followed with the server property name. The first letter of the server property name must be lowercase.

For example in the code below the C#, Visual Basic, and JavaScript examples are equivalent:

      Visual Basic

Dim s As String = C1Schedule1.ViewType

C1Schedule1.ViewType = s

      C#

string s = C1Schedule1.ViewType;
C1Schedule1.ViewType = s;

      JavaScript

var schedule = $get("C1Schedule1").control;

var s = schedule.getViewType();

schedule.setViewType(s);


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.