Properties
AdditionalFields
: string[]
AllowClear
: boolean
= true
AllowDuplicates
: boolean
= false
AllowUserValues
: boolean
= false
AutoEvaluateText
: boolean
Inherited from BaseControl.AutoEvaluateText
Inherited from BaseControl.BackColor
var c = new pf.TextBox({BackColor: "gray"});
Inherited from LookupDataControl.BackupValue
Inherited from LookupDataControl.BackupValueSet
Inherited from BaseControl.Border
var c = new pf.Label({Border: "1px solid #aaa"});
Inherited from BaseControl.BorderRadius
var c = new pf.TextBox({BorderRadius: "3px"});
Inherited from BaseControl.BoxShadow
var c = new pf.TextBox({BoxShadow: "inset 0px 1px 0px #fff"});
BubbleChangeEvent
: boolean
= false
Inherited from DataControl.BubbleChangeEvent
var c = new pf.TextBox({BubbleChangeEvent: true});
Inherited from BaseControl.ClassName
var c = new pf.TextBox({ClassName: "navbar"});
ClientFilterResults
: boolean
Inherited from BaseControl.Comments
Inherited from BaseControl.CssClear
var c = new pf.TextBox({CssClear: "both"});
Inherited from BaseControl.Cursor
var c = new pf.TextBox({Cursor: "pointer"});
DefaultValueProvider
: any
Inherited from DataControl.DefaultValueProvider
var c = new pf.TextBox({DefaultValueProvider: "return new Date();"});
Inherited from BaseControl.DetailContainer
var parentListbox = args.Sender.DetailContainer;
var rootForm = parentListbox.GetParentForm();
var value = rootForm.GetControl("Date").GetValue();
Inherited from BaseControl.DetailDataItem
DropDownAutoWidth
: boolean
= false
Inherited from BaseControl.Enabled
var c = new pf.TextBox({Enabled: false});
Inherited from BaseControl.EnabledFormula
var formula = "form.GetControl(\"activeCheckbox\").GetValue()";
var c = new pf.Button({EnabledFormula: formula});
form.GetControl("checkbox").GetValue() && form.GetControl("Name") != ""
Inherited from DataControl.EqualityComparer
Inherited from BaseControl.ExtraStyle
var c = new pf.Label({ExtraStyle: "margin-left:20px;background-color:#ccc"});
Inherited from BaseControl.Float
var c = new pf.TextBox({Float: "right"});
Inherited from BaseControl.FontBold
var c = new pf.Label({FontBold: true});
Inherited from BaseControl.FontFamily
var c = new pf.Label({FontFamily: "Arial"});
FontItalics
: boolean
= false
Inherited from BaseControl.FontItalics
var c = new pf.Label({FontItalics: true});
Inherited from BaseControl.FontSize
var c = new pf.Label({FontSize: "20px"});
Inherited from BaseControl.ForeColor
var c = new pf.TextBox({ForeColor: "blue"});
Inherited from DataControl.FriendlyName
Inherited from BaseControl.Height
var c = new pf.ListBox({Height: "150px"});
HiddenElement
: HTMLElement
IgnoreControlDependencies
: string
Inherited from BaseControl.IgnoreControlDependencies
LookupDisplayField
: string
=
Inherited from LookupDataControl.LookupDisplayField
var cmb = new pf.ComboBox({LookupValueField: "Id", LookupDisplayField: "Name"});
LookupValueField
: string
=
Inherited from LookupDataControl.LookupValueField
var cmb = new pf.ComboBox({LookupValueField: "Id", LookupDisplayField: "Name"});
LookupValuesProvider
: IDataProvider
Inherited from LookupDataControl.LookupValuesProvider
Inherited from BaseControl.ManualDependencies
ManualEnabledState
: boolean
Inherited from BaseControl.ManualEnabledState
ManualVisibleState
: boolean
Inherited from BaseControl.ManualVisibleState
Inherited from BaseControl.Margin
var c = new pf.Label({Margin: "10px"});
Inherited from BaseControl.MaxHeight
var c = new pf.ListBox({MaxHeight: "300px"});
MaxSelectionCount
: number
= null (no limit is applied)
Inherited from BaseControl.MaxWidth
var c = new pf.TextBox({MaxWidth: "200px"});
Inherited from BaseControl.Metadata
Inherited from BaseControl.MetadataText
MinFilterLength
: number
= 0
var cmb = new pf.ComboBox({MinFilterLength: 2});
Inherited from BaseControl.MinHeight
var c = new pf.Button({MinHeight: "20px"});
Inherited from BaseControl.MinWidth
var c = new pf.Button({MinWidth: "40px"});
MinimumResultsForSearch
: string
var cmb = new pf.ComboBox({Multiple: true});
Inherited from BaseControl.Name
OfflineStaticLookupProvider
: boolean
Inherited from LookupDataControl.OfflineStaticLookupProvider
Inherited from BaseControl.Opacity
var c = new pf.Label({Text: "My Label", Opacity: "0.4"});
Inherited from BaseControl.Overlay
Inherited from BaseControl.OverlayOpacity
Inherited from BaseControl.Padding
var c = new pf.Label({HtmlElement: "div", Padding: "10px"});
Inherited from BaseControl.Parent
Inherited from BaseControl.ParentExtraStyle
ParentHorizontalAlignment
: string
Inherited from BaseControl.ParentHorizontalAlignment
ParentVerticalAlignment
: string
Inherited from BaseControl.ParentVerticalAlignment
var cmb = new pf.ComboBox({Placeholder: "Please select a value"});
Inherited from BaseControl.PrintExtraStyle
Inherited from BaseControl.Printable
QueryTimeout
: number
= 0 (ms)
var cmb = new pf.ComboBox({QueryTimeout: 2000};
Inherited from DataControl.Required
ReturnValueField
: boolean
Serializable
: boolean
= true
Inherited from BaseControl.Serializable
Inherited from DataControl.StaticValue
SuspendChangeEvent
: boolean
= false
Inherited from DataControl.SuspendChangeEvent
Inherited from BaseControl.Tag
Inherited from DataControl.TargetDataItem
TargetDataItemFieldName
: string
Inherited from DataControl.TargetDataItemFieldName
Inherited from DataControl.TargetFieldName
var form = new pf.Form();
var container = new pf.SimpleContainer();
form.AddControl(container);
var textID = new pf.TextBox({TargetFieldName: "ID"});
var textName = new pf.TextBox({TargetFieldName: "Name"});
var textType = new pf.TextBox({TargetFieldName: "Type"});
container.AddControl(textID);
container.AddControl(textName);
container.AddControl(textType);
var value = form.GetValue();
Inherited from BaseControl.TextAlign
var c = new pf.TextBox({TextAlign: "center"});
TextSearchMode
: TextSearchModes
Inherited from BaseControl.Tooltip
var c = new pf.TextBox({Tooltip: "The address of the customer"});
Inherited from BaseControl.TooltipConfiguration
UID
: string
= A new GUID is generated for each control
Inherited from BaseControl.UID
Inherited from DataControl.ValidationGroup
ValueConverter
: DynamicUserFunction
Inherited from DataControl.ValueConverter
Inherited from DataControl.ValueFormatter
ValueProviders
: IDataProvider[]
Inherited from DataControl.ValueProviders
VerticalAlignment
: string
Inherited from BaseControl.VerticalAlignment
Inherited from BaseControl.VisibilityFormula
var formula = "form.GetControl(\"activeCheckbox\").GetValue()";
var c = new pf.Button({VisibilityFormula: formula});
form.GetControl("checkbox").GetValue() && form.GetControl("Name") != ""
Inherited from BaseControl.Visible
var c = new pf.TextBox({Visible: false});
Inherited from BaseControl.Width
var c = new pf.TextBox({Width: "100px"});
AllDesignTimeSettings
: IDesignTimeSettings
CachedComboHeight
: number
TargetFieldNamePropertyName
: string
Inherited from DataControl.TargetFieldNamePropertyName
Methods
AddClass
(className: string[])
: void
Inherited from BaseControl.AddClass
AddClassName
(cls: string)
: void
Inherited from BaseControl.AddClassName
form.GetControl("Title").AddClassName("active");
AddManualDependency
(name: string, dep: IControlDependency)
: void
Inherited from BaseControl.AddManualDependency
Inherited from LookupDataControl.ApplyBackupValue
ApplyDefaultValue
(value: any)
: void
Inherited from DataControl.ApplyDefaultValue
ClearAsReadonly
(exceptions: string[])
: void
Inherited from BaseControl.ClearAsReadonly
Inherited from BaseControl.Clone
EvaluateValue
(options: any, callback: any)
: void
Inherited from DataControl.EvaluateValue
GetActualHeight
()
: number
GetActualHeightHidden
()
: number
Inherited from BaseControl.GetActualWidth
GetAllChildrenControls
()
:
Inherited from BaseControl.GetAllChildrenControls
var children = c.GetAllChildrenControls();
GetAsyncLoadedControls
()
:
Inherited from BaseControl.GetAsyncLoadedControls
Inherited from BaseControl.GetBackColor
Inherited from BaseControl.GetBorder
GetBorderRadius
()
: string
Inherited from BaseControl.GetBorderRadius
Inherited from BaseControl.GetBoxShadow
GetChild
(name: string)
: IControl
Inherited from BaseControl.GetChild
var control = container.GetChild("TitleTextBox");
Inherited from DataControl.GetChildren
Inherited from BaseControl.GetClassName
GetControl
(name: string)
: IControl
Inherited from BaseControl.GetControl
var control = container.GetControl("TitleTextBox");
GetControlAsync
(name: string, callback: , maxTime: number)
: void
Inherited from BaseControl.GetControlAsync
form.GetControlAsync("clientId", function(control) {
if (control) control.SetEnabled(false);
}, 2000);
GetControlById
(id: string)
: IControl
Inherited from BaseControl.GetControlById
var control = container.GetControlById("ID1");
GetControlByTargetFieldName
(name: string)
: IDataControl
Inherited from BaseControl.GetControlByTargetFieldName
var c = form.GetControlByTargetFieldName("CustomerType");
GetControlByTargetFieldNameAsync
(name: string, callback: , maxTime: number)
: void
Inherited from BaseControl.GetControlByTargetFieldNameAsync
GetControlsById
(uid: string)
:
Inherited from BaseControl.GetControlsById
var controls = container.GetControlsById("ID1");
Inherited from BaseControl.GetCssClear
Inherited from BaseControl.GetCursor
GetDependencies
(name: string)
: IControlDependency
Inherited from BaseControl.GetDependencies
Inherited from DataControl.GetDisplayValue
Inherited from BaseControl.GetExtraStyle
Inherited from BaseControl.GetFloat
Inherited from BaseControl.GetFontBold
Inherited from BaseControl.GetFontFamily
Inherited from BaseControl.GetFontItalic
Inherited from BaseControl.GetFontSize
Inherited from BaseControl.GetForeColor
Inherited from BaseControl.GetHeight
GetLookupProvider
()
: IDataProvider
Inherited from LookupDataControl.GetLookupProvider
Inherited from BaseControl.GetMargin
Inherited from BaseControl.GetMaxHeight
Inherited from BaseControl.GetMaxWidth
Inherited from BaseControl.GetMinHeight
Inherited from BaseControl.GetMinWidth
(value: number, format: string, decimals: number, min: number, max: number)
: string
Inherited from DataControl.GetNumberFormattedValue
GetNumericValue
()
: number
Inherited from DataControl.GetNumericValue
var amount = form.GetControl("Amount").GetNumericValue() * 100;
Inherited from BaseControl.GetOffsetTop
Inherited from BaseControl.GetOpacity
Inherited from BaseControl.GetOverlay
GetOverlayOpacity
()
: string
Inherited from BaseControl.GetOverlayOpacity
Inherited from BaseControl.GetPadding
GetParentActualHeight
()
: number
Inherited from BaseControl.GetParentActualHeight
GetParentActualWidth
()
: number
Inherited from BaseControl.GetParentActualWidth
GetParentControl
(name: string)
: IControl
Inherited from BaseControl.GetParentControl
Inherited from BaseControl.GetParentForm
var parent = c.GetParentForm();
Inherited from BaseControl.GetParentFormOrSelf
var parent = c.GetParentFormOrSelf();
Inherited from BaseControl.GetPrintExtraStyle
Inherited from BaseControl.GetRootControl
Inherited from BaseControl.GetRootForm
Inherited from BaseControl.GetTextAlign
Inherited from BaseControl.GetTooltip
Inherited from BaseControl.GetTooltipConfiguration
GetValue
(path: string)
: any
GetValuePath
(path: string, sep: string)
: any
Inherited from DataControl.GetValuePath
var value = form.GetControl("Country");
var result = form.GetControl("Country").GetValuePath("Name");
var result = form.GetControl("Country").GetValuePath("ID");
var value = form.GetControl("Countries");
var result = form.GetControl("Counties").GetValuePath("Name", ", ");
var result = form.GetControl("Counties").GetValuePath("ID", ";");
GetVerticalAlignment
()
: string
Inherited from BaseControl.GetVerticalAlignment
Inherited from BaseControl.GetVisible
Inherited from BaseControl.GetWidth
GroupResults
(data: any[])
:
HasChild
(c: BaseControl)
: boolean
Inherited from BaseControl.HasChild
HasClass
(className: string)
: boolean
Inherited from BaseControl.HasClass
Inherited from BaseControl.IsEnabled
Inherited from BaseControl.IsLoaded
Inherited from DataControl.IsRequired
Inherited from BaseControl.IsVisible
LoadLookupValues
(additionalSpecs: any[], force: boolean, callback: any)
: void
RemoveClass
(className: string[])
: void
Inherited from BaseControl.RemoveClass
RemoveClassName
(cls: string)
: void
Inherited from BaseControl.RemoveClassName
form.GetControl("Title").RemoveClassName("active");
Inherited from BaseControl.ScrollIntoView
Select
(fieldName: string, fieldValue: any, clear: boolean)
: void
combobox.Select("ID", "23");
SetAllowDuplicates
(allowDuplicates: boolean)
: void
form.GetControl("combo1").SetAllowDuplicates(true);
SetAsReadonly
(exceptions: string[])
: void
Inherited from BaseControl.SetAsReadonly
SetBackColor
(color: string)
: void
SetBorder
(border: string)
: void
Inherited from BaseControl.SetBorder
form.GetControl("Name").SetBorder("1px solid #aaa");
SetBorderRadius
(radius: string)
: void
Inherited from BaseControl.SetBorderRadius
form.GetControl("Name").SetBorderRadius("3px");
SetBoxShadow
(value: string)
: void
Inherited from BaseControl.SetBoxShadow
form.GetControl("Name").SetBoxShadow("inset 0px 1px 0px #fff");
SetClassName
(cls: string)
: void
Inherited from BaseControl.SetClassName
form.GetControl("Title").SetClassName("active");
SetClientFilterResults
(clientFilterResults: boolean)
: void
SetControlValue
(value: any)
: boolean
SetCssClear
(clear: string)
: void
Inherited from BaseControl.SetCssClear
form.GetControl("Name").SetCssClear("both");
SetCursor
(cursor: string)
: void
Inherited from BaseControl.SetCursor
form.GetControl("Name").SetCursor("pointer");
SetEnabled
(enable: boolean)
: void
SetEnabledRecursive
(enabled: any, exceptions: string[])
: void
Inherited from BaseControl.SetEnabledRecursive
Inherited from BaseControl.SetExtraStyle
form.GetControl("Name").SetExtraStyle("margin-top:10px;clear:both;");
SetFloat
(cssFloat: string)
: void
Inherited from BaseControl.SetFloat
form.GetControl("Name").SetFloat("right");
SetFontBold
(bold: boolean)
: void
Inherited from BaseControl.SetFontBold
form.GetControl("Name").SetFontBold(true);
SetFontFamily
(family: string)
: void
Inherited from BaseControl.SetFontFamily
form.GetControl("Name").SetFontFamily("Arial");
SetFontItalics
(italics: boolean)
: void
Inherited from BaseControl.SetFontItalics
form.GetControl("Name").SetFontItalics(true);
SetFontSize
(size: string)
: void
Inherited from BaseControl.SetFontSize
form.GetControl("Name").SetFontSize("14px");
SetForeColor
(color: string)
: void
SetHeight
(height: string)
: void
Inherited from BaseControl.SetHeight
form.GetControl("Name").SetHeight("20px");
Inherited from BaseControl.SetLoaded
SetLookupProvider
(provider: IDataProvider)
: void
Inherited from LookupDataControl.SetLookupProvider
SetMargin
(margin: string)
: void
Inherited from BaseControl.SetMargin
form.GetControl("Name").SetMargin("10px 20px");
form.GetControl("Name").SetMargin("10px");
form.GetControl("Name").SetMargin("10px 20px 30px 40px");
SetMaxHeight
(height: string)
: void
Inherited from BaseControl.SetMaxHeight
form.GetControl("Name").SetMaxHeight("200px");
SetMaxWidth
(width: string)
: void
Inherited from BaseControl.SetMaxWidth
form.GetControl("Name").SetMaxWidth("200px");
SetMetadataText
(metadataText: string)
: void
Inherited from BaseControl.SetMetadataText
SetMinFilterLength
(minFilterLength: number)
: void
form.GetControl("combo1").SetMinFilterLength(3);
SetMinHeight
(height: string)
: void
Inherited from BaseControl.SetMinHeight
form.GetControl("Name").SetMinHeight("200px");
SetMinWidth
(width: string)
: void
Inherited from BaseControl.SetMinWidth
form.GetControl("Name").SetMinWidth("50px");
SetMultiple
(multiple: boolean)
: void
SetOpacity
(op: string)
: void
Inherited from BaseControl.SetOpacity
form.GetControl("Name").SetOpacity("0.6");
SetOverlay
(set: boolean)
: void
Inherited from BaseControl.SetOverlay
SetOverlayOpacity
(opacity: string)
: void
Inherited from BaseControl.SetOverlayOpacity
SetPadding
(padding: string)
: void
Inherited from BaseControl.SetPadding
form.GetControl("Name").SetPadding("10px 20px");
form.GetControl("Name").SetPadding("10px");
form.GetControl("Name").SetPadding("10px 20px 30px 40px");
Inherited from BaseControl.SetPrintExtraStyle
SetQueryTimeout
(queryTimeoutInMs: number)
: void
SetRequired
(required: any)
: void
Inherited from DataControl.SetRequired
SetReturnValueField
(returnValueField: boolean)
: void
SetStaticData
(items: any[])
: void
SetTextAlign
(align: string)
: void
Inherited from BaseControl.SetTextAlign
form.GetControl("Name").SetTextAlign("center");
SetTextSearchMode
(textSearchMode: TextSearchModes)
: void
(tooltip: string, options: any)
: void
Inherited from BaseControl.SetTooltip
form.GetControl("Address").SetTooltip("This is the address field");
(value: ITooltipOptions)
: void
Inherited from BaseControl.SetTooltipConfiguration
SetValue
(value: any)
: void
Inherited from DataControl.SetValue
form.GetControl("CustomerCombo").SetValue({ID: "1", Name: "CustomerA"});
form.GetControl("checkbox").SetValue(true);
form.GetControl("label1").SetValue("My label text");
SetVerticalAlignment
(align: string)
: void
Inherited from BaseControl.SetVerticalAlignment
SetVisible
(visible: boolean)
: void
Inherited from BaseControl.SetVisible
form.GetControl("Title").SetVisible(false);
SetWidth
(width: string)
: void
Inherited from BaseControl.SetWidth
form.GetControl("Name").SetWidth("100%");
ShouldAddGlobalCssClass
()
: boolean
Inherited from BaseControl.ShouldAddGlobalCssClass
SupportsUserEdit
()
: boolean
Inherited from DataControl.SupportsUserEdit
SwitchClass
(condition: boolean, classNames: string[])
: void
Inherited from BaseControl.SwitchClass
Inherited from BaseControl.ToNormalMode
ToNormalModePrintable
()
: boolean
Inherited from BaseControl.ToNormalModePrintable
Inherited from BaseControl.ToPrintMode
ToPrintModePrintable
()
: boolean
Inherited from BaseControl.ToPrintModePrintable
Inherited from BaseControl.ToViewMode
ToggleClass
(classNames: string[])
: void
Inherited from BaseControl.ToggleClass
WaitForAsyncControlsToLoad
(callback: any)
: void
Inherited from BaseControl.WaitForAsyncControlsToLoad
WithAllowDuplicates
(allowDuplicates: boolean)
: this
WithClientFilterResults
(clientFilterResults: boolean)
: this
WithMinFilterLength
(minFilterLength: number)
: this
WithMultiple
(multiple: boolean)
: this
WithQueryTimeout
(queryTimeoutInMs: number)
: this
WithReturnValueField
(returnValueField: boolean)
: this
WithTextSearchMode
(textSearchMode: TextSearchModes)
: this
_LoadData
(query: , force: boolean)
: void
_SetData
(query: any)
: void
ComboBoxEqualityComparer
(item1: any, item2: any)
: boolean
CreatePropertiesFromHtmlAttributes
(c: BaseControl, el: HTMLElement)
: any
Inherited from BaseControl.CreatePropertiesFromHtmlAttributes
FromJSON
(def: any)
: ComboBox
FromJSON2
(r: ComboBox, def: any)
: ComboBox
Events
OnBeginEvaluateValue
(form: pf.Form, args: IEventArgs (Parent: any, Sender: any))
:
Inherited from DataControl.OnBeginEvaluateValue
OnControlAdded
(form: pf.Form, args: IControlAddedEventArgs (Control: any, Parent: any, Sender: any))
:
Inherited from BaseControl.OnControlAdded
OnLoaded
(form: pf.Form, args: IEventArgs (Parent: any, Sender: any))
:
Inherited from BaseControl.OnLoaded
OnLookupLoaded
(form: pf.Form, args: ILookupLoadedEventArgs (Data: , Parent: any, Sender: any))
:
Inherited from LookupDataControl.OnLookupLoaded
OnLookupLoading
(form: pf.Form, args: IEventArgs (Parent: any, Sender: any))
:
Inherited from LookupDataControl.OnLookupLoading
OnOpening
(form: pf.Form, args: IEventArgs (Parent: any, Sender: any))
:
OnSelecting
(form: pf.Form, args: IGenericEventArgs (Data: T, Parent: any, Sender: any))
:
OnUnselecting
(form: pf.Form, args: IGenericEventArgs (Data: T, Parent: any, Sender: any))
:
OnValueChangedFromUI
(form: pf.Form, args: IValueChangedEventArgs (Parent: any, PreviousValue: any, Sender: any, Value: any))
:
Inherited from DataControl.OnValueChangedFromUI
OnValueLoaded
(form: pf.Form, args: IEventArgs (Parent: any, Sender: any))
:
Inherited from DataControl.OnValueLoaded