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

Working with the Client-Side Menu

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

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

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

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

var menu = $find("<%= C1Menu1.ClientID %>");

Using C1Menu’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 C1Menu’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.