Select List
Provides a way for a user to select multiple items by using the control / shift keys.
Tag Attributes
<ss:forms:selectlist />
DataFilter=""
Data filter
As=""
The name of the variable to be registered for each row
ShowValueOption=""
If the value not a contact of the datasource or in the list of options, should it be allowed
SaveState=""
Whether or not the value of the control is persisted when the page is revisited
FocusOnLoad=""
Whether or not to auto focus the item on load
Value=""
DataSource=""
Sets the data source for retreiving the result set
DataSourceRecursive=""
If set, the control will populate recurively until the DataSourceRecursive returns an empty result set
DataTitle=""
Sets the visible title of the text box to the evaluated version of this expression
DataValue=""
Sets the data value
Title=""
Returns the title of the current selected option
Id=""
Sets id of the object - used for the html id attribute and referencing in the parser's
document object model
Name=""
Sets the name of the form item
form=""
Returns the form item's parent form
Disabled=""
Sets the disabled attribute
ValueForStateSave=""
Returns the value for state preservation
DataColumn=""
Sets the data column
ValueFromClient=""
Returns the value submitted by the client
ValueIgnore=""
Sets the ValueIgnore property
datacolumn - The field from the datasource will be ignored
client - Any value supplied by the client will be ignored
ajax - Any value supplied by the client throught ajax will be ignored
empty - Any empty value will be ignored
EncodeValue=""
Sets whether to html encode the value
EncodeValueBracketsOnly=""
Sets whether to encode just brackets, or all html special characters
Transformations=""
Sets the transformations to be applied to the value of the form item
Validations=""
Sets the validations to be applied to the value of the form item
Width=""
Sets the width of the element
Height=""
Sets the height of the element
AttributeSet=""
Calls setAttribute() for each key value pair in $arrAttributes
AjaxModified=""
Sets whether or not this object is modified by ajax requests
AjaxEventParameter=""
Sets a parameter which can be passed to the ajax event
Be careful with security on this parameter as it is passed through javascript in the
clients browser.
ChildNodes=""
Sets the children of this node in the DOM
InnerText=""
Adds a new TextNode child at the end of the children
Examples
Select List
Demonstrates a selectlist element.
XML Code:
Class Methods
The following methods can be invoked on instances of this class.
Constructor
Returns the attributes of the elment as a renderable properties string
Sets the data source for retreiving the result set
Returns the current data source
If set, the control will populate recurively until the DataSourceRecursive returns an empty result set
Returns the current recursive data source
Sets the visible title of the text box to the evaluated version of this expression
Returns the dataset title
Sets the data value
Returns the current data value
Evaluates the datasource
Populates ComboBox options from datasource and datasourcerecursive
Returns the title of the current selected option
Returns a list of properties which will be saved to session state
Sets id of the object - used for the html id attribute and referencing in the parser's
document object model
Sets the name of the form item
Returns the name of the form item
Returns the name of the form item without any brackets
For instance, if you have name="item[]", this function will return 'item'
Returns the form item's parent form
Returns the item's form row if it has one
Sets the disabled attribute
Returns the value for state preservation
Returns the value for state preservation
Sets the data column
Returns the current data column
Returns the value submitted by the client
Returns the value set using the datacolumn
Sets the ValueIgnore property
datacolumn - The field from the datasource will be ignored
client - Any value supplied by the client will be ignored
ajax - Any value supplied by the client throught ajax will be ignored
empty - Any empty value will be ignored
Returns the ValueIgnore property
Sets the value of the form item
Encodes a value depending on the properties EncodeValue and EncodeValueBracketsOnly
Sets whether to html encode the value
Returns whether to encode the value
Sets whether to encode just brackets, or all html special characters
Returns whether to encode just brackets, or all html special characters
Sets the transformations to be applied to the value of the form item
Sets the validations to be applied to the value of the form item
Validates the form item
Returns the base tag name
Returns whether the tag is closed inline
Sets the width of the element
Returns the width of the element
Sets the height of the element
Returns the height of the element
Returns a set of JavaScript attributes that differ from the default JS implementation
Default values on properties can be specified by @js_attribute and @js_default
Returns whether or not this control needs the HTML attribute of id="" to function
properly.
Generates an id for the node if one isnt already set
Returns whether or not this control will be wrapped in a container span
Restores a control from its element state
Returns the id of the object
Overload for returning an attribute
Overload for setting an attribute
Returns whether an attribute exists
Removes an attribute
Sets an attribute
Returns true when handled
Returns false when set as standard a HTML attribute
Calls setAttribute() for each key value pair in $arrAttributes
Sets generic HTML attributes not specified by attributes of this control
Returns the current attributes set that aren't defined attributes of this control
Sets a single attribute
Returns a single attribute
Adds a javascript handler attribute
If a handlers already exist, the new handler added to the end
Returns the value of the given attribute
Removes an attribute
Returns the objects attributes as an associative array
Merges two sets of attributes
Sets whether or not this object is modified by ajax requests
Returns whether or not this object is modified by ajax requests
Returns a list of all attributes to save to session state
Serializes the state of the object to session
Sets a key value pair for saving additional state data
This data is handled manually by each inheriting control
Returns whether an additional state key has been set
Returns the value of a key in the additional state set
Note: This function returns a reference
Deletes additional saved data
Sets an inner array key value pair for saving additional state data
Returns whether an additional state key has been set
Returns an inner array key value pair for additional state data
Returns the state data for the current object
Restores the saved state of this object from the users session
Adds an event handler
If $strCode is an array, call_user_func_array will be called directly
call_user_func_array($strFunc[0], $strFunc[1]);
Triggers a server side event
Calls all event handlers set by addEventHandler
Sets the ajax event handlers
Adds an AJAX event handler
Sets the ajax event handlers
Sets a parameter which can be passed to the ajax event
Be careful with security on this parameter as it is passed through javascript in the
clients browser.
Returns the current ajax event parameter
Renders the element
Magic function for a better var_export() of nodes
Wake up
Clone
Renders the element to a string
Returns whether the control should trim its contents for optimisation purposes
Sets the elements parent node in the DOM
Returns the elements parent node in the DOM
Returns the first ascendant node of a specific class
Returns the elements top most / document element
Sets the child nodes from the template
This method may be overridden if the innerHTML from the original source acts as a
template, rather than being the nodes themselves. For example, a data repeater
uses the child nodes from the template to construct the child nodes dynamically.
Sets the children of this node in the DOM
Returns the children of this node
Adds new child at the end of the children
Adds a new TextNode child at the end of the children
Removes the specified node from the list of children
Resets the indicators for dom states so that reinitialisation / rendering can occur
Returns an array containing the states of parent controls
such as DialogBox and TabList
Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.
Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.
Returns the folder where the class exists
Returns the folder where the class's resources exist
Returns the folder where the class exists
Returns the folder where the class exists
Returns the reflection data for the current class
Returns a specific class annotation for the current class