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