ComponentOne Expander for ASP.NET AJAX: Expander for ASP.NET AJAX Top Tips

Expander for ASP.NET AJAX Top Tips

This section details some tips and best practices that may be helpful when using Expander for ASP.NET AJAX. The following tips were compiled from frequently asked user questions posted in the C1Expander forum.

Tip 1: Use the ScriptManager Control

ComponentOne Expander for ASP.NET AJAX requires that Microsoft ASP.NET AJAX Extensions and a ScriptManager control are included in your project before the C1Expander control is placed on the page. This allows you to take advantage of ASP.NET AJAX and certain features such as partial-page rendering and client-script functionality of the Microsoft AJAX Library.

Tip 2: Set Visual Styles to Change the Appearance of the Control

Expander for ASP.NET AJAX includes several built-in visual styles, including Vista and Office 2007 styles, to quickly style your application. See Visual Styles for more information. You can also create your own custom visual style based on an existing visual style. See Adding a Custom Visual Style for more information and an example.

Tip 3: Use Header and Content Templates

You can easily reuse content by using Header and Content templates. Templates make it simple to copy and use content across multiple C1Expander controls. For more information, see Header and Content Templates.

Tip 4: Add Animations and Transitions

ComponentOne Expander for ASP.NET AJAX includes twenty-six built-in animations and thirty-one built-in transition effects that allow you to quickly customize how users interact with the C1Expander control. For more information about adding these effects to you application, see Expand and Collapse Animations and Expand and Collapse Transitions.

Tip 5: User Client-Side Script to Save Server Load

Expander for ASP.NET AJAX had a robust client-side object model, where a majority of server-side properties can be set on the client side and client-side events are described in the properties window. When a C1Expander control is rendered, an instance of the client side control will be created automatically. This means that you can enjoy the convenience of accessing properties and methods of the C1Expander control without having to postback to the server. See Client-Side Functionality for more information.


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