ComponentOne Accordion for ASP.NET AJAX: Client-Side Functionality

Client-Side Functionality

C1Accordion includes a robust client-side object model, where a majority of server-side properties can be set on the client side.

When a C1Accordion control is added to a Web project, an instance of the client-side control will be created automatically. You can then access properties and methods of the C1Accordion control without having to postback to the server, increasing the efficiency of your Web site and providing a better user experience.

Suppose a C1Accordion control with the name C1Accordion1 is added to a Web page. When the page is rendered, a corresponding C1Accordion object will be created. Use the following syntax to get the client object:

$get("C1Accordion1").control

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 (camel case).

For more information about the client-side properties and methods, see the C1Accordion client-side reference section of this documentation.


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