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.
- C#
- VB.NET
public class VisDropDownBase : SalComboBox
Public Class VisDropDownBase
Inherits 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
VisDropDownBase()
Initializes the custom-popup field.
Properties
DropDownControl
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.
SelectedIndex
Int32: Provides the base compatibility selection property.
Always returns -1. Assignments are ignored; selection belongs to the custom popup.
Methods
OnAddReferences(items)
Adds the popup control to the browser reference list before inherited references.
| Parameter | Type | Description |
|---|---|---|
| items | IList | The mutable reference list. |
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.
OnSizeChanged(e)
Raises the inherited event and synchronizes the popup width with this field.
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The size-change event data. |
OnWebRender(config)
Configures the custom-popup client class and popup reference.
| Parameter | Type | Description |
|---|---|---|
| config | Object | The mutable browser configuration. |
Removes the inherited mask, prompt, and hidePrompt settings.
Inherited By
| Name | Description |
|---|---|
| VisListViewDropDown | A combo-style field whose popup is a Visual Toolchest list view. |
| VisOutlineComboBox | A combo-style SAL field with an expandable outline-tree popup. |
Implements
| Name | Description |
|---|---|
| ISalControl | |
| ISalEditControl | |
| ISalListControl | |
| ISalWindow |