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

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:

      Visual Basic

Dim s As String = C1SuperPanel1.AccessKey

C1SuperPanel1.AccessKey = s

      C#

string s = C1SuperPanel1.AccessKey;

C1SuperPanel1.AccessKey = s;

      JavaScript

var SuperPanel = $get("C1SuperPanel1").control;

var s = SuperPanel.get_accessKey();

SuperPanel.set_accessKey(s);

 

For an example of setting C1SuperPanel’s Height and Width properties at run time, see Set the Height and Width at Run Time.

C1SuperPanel 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 C1SuperPanel Reference.

The following table lists the events that you can use in your client scripts. These properties are defined on the server side, but the actual events or the name you declare for each JavaScript function are defined on the client side.

Client Side Event table

Event Server-Side Property Name

Event Name

Description

OnClientInitialized

ClientInitialized

Gets or sets the name of the client-side function to all when initialized

OnClientResized

ClientResized

Gets or sets the on client-side function to all when C1SuperPanel is resized.

OnClientScrolled

ClientScrolled

Gets or sets the name of the client-side function to all when scrolling ends.

OnClientScrolling

ClientScrolling

Gets or sets the name of the client-side function to all when scrolling ends.

 

 Sample Project Available

For a demonstration of client-side functions in the C1SuperPanel control, see the ClientSide page of the ControlExplorer sample.


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