ComponentOne ToolBar for ASP.NET AJAX: Working with the Client-Side ToolBar

Working with the Client-Side ToolBar

C1Toolbar client side has a very rich client-side object model since most of its members are identical to the members in the server-side control.

When a C1ToolBar control is rendered, an instance of the client-side toolbar will be created automatically. This means that you can enjoy the convenience of accessing properties and methods of the C1ToolBar control without having to postback to the server.

For example, suppose a C1ToolBar control with the name, C1ToolBar1 is hosted on the Web page, when the page is rendered, a corresponding client menu object with the name C1ToolBar1_Client will be created.

You can get the reference for a C1ToolBar using the following client-side code:

var controlObj = Sys.Application.findComponent("<%=C1ToolBar1.ClientID%>");

Using C1ToolBar’s client-side code, you can implement many features in your Web page without the need to send information to the Web server which takes time. Thus, using C1ToolBar’s client-side object model can increase the efficiency of your Web site.

The following topics describe the available client-side properties, methods, and events.


Client-Side Properties

Client-Side Methods

Client-Side Events


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