Client-Side Properties
The following conventions are used when accessing 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 (camel case).
For example in the code below the C#, Visual Basic, and JavaScript examples are equivalent:
Dim s As String = C1Expander1.AccessKey
C1Expander1.AccessKey = s
• C#
string s = C1Expander1.AccessKey;
C1Expander1.AccessKey = s;
var oExpander = $get("C1Expander1").control;
var s = oExpander.get_accessKey();
oExpander.set_accessKey(s);
For an example of setting the Height and Width properties at run time, see Setting the Height and Width at Run Time.
C1Expander includes a rich client-side object model in which several properties can be set on the client side. For information about these client-side methods and what properties can be set on the client side, see the C1Expander Reference.
|