ComponentOne SuperPanel for ASP.NET AJAX: SuperPanel Behavior > SuperPanel Scroll Settings

SuperPanel Scroll Settings

The C1SuperPanel control contains several scroll settings properties for determining the visibility, button alignment, scroll mode, and scrollbar location for the horizontal and vertical scrollbars on the SuperPanel: Visibility, ScrollButtonAlign, ScrollMode, and ScrollbarLocation. These properties are described in the table below.

 

Property

Enumeration

Description

Visibility

C1ScrollBarVisibility

Gets or sets the visibility option for the superpanel. These options are outlined below:

      Hidden: Scroll bar (button) is always hidden. It’s not shown in any case.

      Visible: Scroll bar (button) is always visible and is disabled when not available.

      Auto: Scroll bar (button) is shown when needed

ButtonAlign

C1ScrollButtonAlign

Gets or sets the alignment of the scroll buttons. The buttons can be set to StartSide, TwoSides, or EndSide. These options are outlined below:

      StartSide: Selecting this option places both buttons on the starting side of the superpanel.

      TwoSides: Selecting this option places buttons on each side of the superpanel.

      EndSide: Selecting this option places both buttons on the ending side of the superpanel.

Mode

C1SuperPanelScrollMode

Gets or sets a value that determines which scroll mode is enabled. You can choose from Buttons, ButtonsHover, Edge, and ScrollBar. These options are outlined below:

      Buttons: Selecting this option will place two button images on the control. These buttons must be pressed in order to scroll through the superpanel.

      ButtonsHover: Selecting this option will place two button images on the control. Users can scroll through the SuperPanel by hovering over one of the buttons.

      Edge: Selecting this option enables users to scroll through the SuperPanel by hovering over SuperPanel’s inner edge to do the scrolling.

      ScrollBar: Selecting this option enables users to scroll through the SuperPanel by using the scrollbars.

Any of these options may be combined to create a mixed scrolling mode.

(Horizontal)ScrollbarLocation

C1HScrollBarPosition

Gets or sets the scroll position option for the horizontal scrollbar. This property will determine the position of the scrollable superpanel at run-time.

(Vertical)ScrollbarLocation

C1VScrollBarPosition

Gets or sets the scroll position option for the vertical scrollbar. This property will determine the position of the scrollable superpanel at run-time.

 

 Sample Project Available

For a demonstration of client-side functions in the C1SuperPanel control, see the ScrollMode page of the ControlExplorer sample.


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