Skip to main content
Version: 2025

VisDropDownBase

Namespace: PPJ.Runtime.Vis

Assembly: PPJ.Web.Vis.50 (5.0.0.0)

Provides a combo-style SAL field with a separate control rendered as its popup.

public class VisDropDownBase : SalComboBox

Derived classes supply the popup control and its selection behavior.

Example:

var field = new VisListViewDropDown();
VisDropDownBase popupField = field;
Wisej.Web.Control popup = popupField.DropDownControl;

Constructors​

Instance member VisDropDownBase()​

Initializes the custom-popup field.

Properties​

Control: Gets or sets the control displayed as the popup.

A newly assigned control receives the current field width and DropDownHeight. Changing the reference requests a browser update.

Instance member SelectedIndex​

Int32: Provides the base compatibility selection property.

Always returns -1. Assignments are ignored; selection belongs to the custom popup.

Methods​

Protected member OnAddReferences(items)​

Adds the popup control to the browser reference list before inherited references.

ParameterTypeDescription
itemsIListThe mutable reference list.

Protected member OnCreateControl()​

Creates and shows the custom popup after the field is created.

At runtime, detaches the popup from any parent before creating it. Does not perform this setup in design mode.

Protected member OnSizeChanged(e)​

Raises the inherited event and synchronizes the popup width with this field.

ParameterTypeDescription
eEventArgsThe size-change event data.

Protected member OnWebRender(config)​

Configures the custom-popup client class and popup reference.

ParameterTypeDescription
configObjectThe mutable browser configuration.

Removes the inherited mask, prompt, and hidePrompt settings.

Inherited By​

NameDescription
VisListViewDropDownA combo-style field whose popup is a Visual Toolchest list view.
VisOutlineComboBoxA combo-style SAL field with an expandable outline-tree popup.

Implements​

NameDescription
ISalControl
ISalEditControl
ISalListControl
ISalWindow