C1Button Control

A C1Button control is a button item that can be placed in the content section of a C1ViewPort control. You can change the type of button used by setting the ButtonType property. The table below illustrates the seven button types you can choose from.

 

Button Type

Image

Back

Destructive

Forward

Immediate

Primary

Standard

TextOnly

 

C1Button does not have a minimum or maximum width. However, the graphics provided with the button types do not exceed certain widths and heights. The graphics provided with Destructive, Immediate, Primary, and Standard buttons work up to 60px high and 220px wide, while the graphics for the Forward button only work up to 20px high and 220px wide and the graphics for the Back button will only work up to 30px high and 200px wide. If you want buttons larger than any of these maximums, you will have to add a custom visual style to the control (see Custom Visual Styles).

C1Button can be used as a replacement for an ASP.NET button control. You can perform custom client-side or server-side actions using either the Click event (for task-based help, see Using C1Button to Perform Server-Side Actions) or the OnClientClick event (for task-based help, see Using C1Button to Perform Client-Side Actions). A C1Button control can also be used for navigation. To use C1Button for navigation, set its NavigateUrl property. For more information, see Using C1Button for Navigation.

For task-based help concerning the C1Button control, see Using the C1Button Control.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.