Overview

Packages

  • Actions
  • Codegen
  • Controls
    • Base
  • DatabaseAdapters
  • Events
  • None
  • Sessions
  • Tests

Classes

  • BasicForm
  • CalculatorWidget
  • DataRepeaterExample
  • ExampleCheckColumn1
  • ExampleCheckColumn2
  • ExampleSingleForm
  • NestedTabForm
  • PaginatorForm
  • ParamsForm
  • PersistentExampleForm
  • PersonEditPanel
  • PluginEditForm
  • PluginManagerForm
  • ProjectEditPanel
  • ProjectListForm
  • ProjectViewPanel
  • QAccordion
  • QActionControl
  • QAutocomplete
  • QBlockControl
  • QButton
  • QButtonBase
  • QCalendar
  • QCheckBox
  • QCheckBoxLegacyColumn
  • QCheckBoxList
  • QControl
  • QControlBase
  • QControlGrouping
  • QControlLabel
  • QCsvTextBox
  • QDataGrid
  • QDataGrid_CheckBoxColumn
  • QDataGrid_SortEvent
  • QDataGridBase
  • QDataGridLegacy
  • QDataGridLegacyBase
  • QDataGridLegacyColumn
  • QDataGridLegacyRow
  • QDataGridLegacyRowStyle
  • QDataRepeater
  • QDatepicker
  • QDatepickerBox
  • QDateTimePicker
  • QDateTimeTextBox
  • QDialog
  • QDialogBox
  • QDraggable
  • QDroppable
  • QDropZoneGrouping
  • QEmailTextBox
  • QFileAsset
  • QFileAssetBase
  • QFileAssetDialog
  • QFileControl
  • QFilterType
  • QFloatTextBox
  • QFontFamily
  • QForm
  • QFormBase
  • QHListItem
  • QHtmlAttributeManager
  • QHtmlAttributeManagerBase
  • QHtmlTable
  • QHtmlTableBase
  • QImageBase
  • QImageBrowser
  • QImageBrowserBase
  • QImageBrowserNav
  • QImageBrowserThumbnails
  • QImageButton
  • QImageControl
  • QImageControlBase
  • QImageFileAsset
  • QImageLabel
  • QImageLabelBase
  • QImageRollover
  • QIntegerTextBox
  • QJqButton
  • QJqCheckBox
  • QJqRadioButton
  • QJsTimer
  • QJsTimerBase
  • QLabel
  • QLinkButton
  • QListBox
  • QListBoxBase
  • QListControl
  • QListItem
  • QListItemBase
  • QListItemStyle
  • QNumericTextBox
  • QPaginatedControl
  • QPaginator
  • QPaginatorBase
  • QPanel
  • QProgressbar
  • QRadioButton
  • QRadioButtonList
  • QResizable
  • QSampleControl
  • QSelectable
  • QSlider
  • QSortable
  • QTabs
  • QTagStyler
  • QTestControl
  • QTextBox
  • QTimerExpiredEvent
  • QTreeNav
  • QTreeNavItem
  • QUrlTextBox
  • QWaitIcon
  • QWriteBox
  • RecordsSummary
  • RefreshForm
  • SampleForm
  • SelectableLabel
  • SpeedForm
  • TestImageBrowser
  • UrlForm

Traits

  • QListItemManager

Exceptions

  • QCrossScriptingException

Functions

  • __QForm_EvaluateTemplate_ObHandler
  • DataGridEvalHandleError
  • Overview
  • Package
  • Class

Class QDataGridLegacyBase

NOTE: Due to the use of "Eval" and HTML4 specific tags, this class is now deprecated and the name has been changed from QDataGrid to QDataGridLegacy.

DataGrid control is used to display tabular information (e.g. lists)

The control itself will display things based off of an array of objects that gets set as the "Data Source". It is particularly useful when combined with the Class::LoadArrayByXXX() functions or the Class::LoadAll() that is generated by the CodeGen framework, or when combined with custom Class ArrayLoaders that you define youself, but who's structure is based off of the CodeGen framework.

The DataGrid essentially is a

<

table>. For each item in a datasource's Array, a row () will be generated. You can define any number of DataGridColumns which will result in a for each row. Within the DataGridColumn, you can specify the DataGridColumn::Html that should be displayed.

The HTML looks for the special back-tick character "", and will do PHP Eval's on antyhing within a pair of `. Moreover, the special variable $_ROW can be used to access the actual contents of that particular row's data in the main data source array.

So, for example, supposed the following: $strSimpleArray = {"Blah", "Foo", "Baz", "Fun"}; $dtgDataGrid = new DataGrid("dtgDataGrid"); $dtgDataGrid->AddColumn("Column Heading", "Contents: $_ROW"); $dtgDataGrid->DataSource = $strSimpleArray; This will generate a simple 4-row, 1-column table that contains the following: Column Heading -------------- Contents: Blah Contents: Foo Contents: Baz Contents: Fun In this case, $_ROW is a string, itself, which is each item in the DataSource's array.

Utilizing the back-tick and $_ROW feature, you can do infinitely more complicatd display functionality: $dtgDataGrid = new DataGrid("dtgDataGrid"); $dtgDataGrid->AddColumn("Title", "$_ROW->Title"); $dtgDataGrid->AddColumn("Calculated Result", "DisplayResults($_ROW->Calculate())"); $dtgDataGrid->DataSource = Foo::LoadAll(); This could then generate a table with much more data-rich information: Title Calculated Result ----------------- -------------------- Some Title Here $28,298.24 Foo Baz Bar $18,000.00 Blah (None) In this case, $_ROW is actually a Foo object.

IMPORTANT: Please note that while all properties can/should be set up only once within the form's !IsPostBack() clause, the DataSource MUST be set EVERY TIME. The contents of DataSource do NOT persist from postback to postback.

The appearance of the datagrid control appears to be complicated, but keep in mind that it simply utlizes the cascading nature of how browsers render tables based on styles assigned to the

<

table>, , and . In short: - Appearance properties defined to the DataGrid, itself, show up as HTML Attributes and CSS Styles within the

<

table> tag. - Appearance properties defined to a specific row's DataGridRowStyle will show up as HTML attributes within that specific row's tag. - Appearance properties defined to a DataGridColumn will show up as HTML attributes within that specific row's tag.

So, attributes will only show up if it is defined at that particular level. So if you define a background color for a DataGridRowStyle for a particular row, but not for a DataGridColumn or for the DataGrid in general, that background style will only show up in that row.

And due to the cascaiding nature of how browsers render tables, any undefined appearance property will simply inherit from the parent (where a 's parent is the , and the 's parent is the

<

table>, and any defined appearance property will simply override whatever was defined by the parent.

Sorting

Whether or not a column can be sorted depends on whether or not you define a SortByCommand (and subsequently a ReverseSortByComamnd) on the DataGridColumn itself. This SortByCommand is meant to be the SQL syntax used in an "ORDER BY" clause of a SQL query. This fits in really well with the CodeGen Framework's Class::LoadArrayByXXX() and Class::LoadAll() which takes "$strSortInfo" as an optional parameter. If a DataGrid is being sorted by a specific column, DataGrid::SortInfo will return to you the contents of DataGridColumn::SortByCommand (or ReverseSortByCommand if it's a reverse sort) for the specific column being sorted by. Therefore, you can set up your data source like: $dtgDataGrid->DataSource = Foo::LoadAll($dtgDataGrid->SortInfo);

Pagination

Pagination can be toggled on and off with the DataGrid::Paginate flag. When enabling pagination, you must specify how many items, TOTAL, are in the full list (DataGrid::TotalItemCount). The DataGrid will then automatically calculate the SQL Limit information (as used in a "LIMIT" clause of a SQL query) to be used when querying a specific subset of the total list. As with sorting, this fits really well with the CodeGen Framework's LoadArray methods which takes $strLimitInfo" as an optional parameter. Moreover, the codegen also auto-generates CountBy methods for every LoadAll/LoadArray method it generates to assist with the DataGrid::TotalItemCount property: $dtgDataGrid->TotalItemCount = Foo::CountAll(); $dtgDataGrid->DataSource = Foo::LoadAll($dtgDataGrid->SortInfo, $dtgDataGrid->LimitInfo);

Due to a bug with PHP, you cannot set a property of a property. DataGrid's AlternateRowStyle, HeaderRowStyle and RowStyle are obviously instances of DataGridRowStyle objects which have properties in and of themselves. So unfortuantely, the following code will NOT work: $dtgDataGrid->RowStyle->BackColor = "blue"; Instead, you will need to do the following: $objRowStyle = $dtgDataGrid->RowStyle; $objRowStyle->BackColor = "blue";

QBaseClass
Extended by QHtmlAttributeManagerBase
Extended by QHtmlAttributeManager
Extended by QControlBase
Extended by QControl
Extended by QPaginatedControl uses QDataBinder
Extended by QDataGridLegacyBase

Direct known subclasses

QDataGridLegacy
Abstract
Package: Controls
Located at includes/base_controls/QDataGridLegacyBase.class.php
Methods summary
public
# AddRowAction( QEvent $objEvent, QAction $objAction )

Add an action on a row of this QDataGridLegacy

Add an action on a row of this QDataGridLegacy

Parameters

$objEvent
Event object
$objAction
Action object
public
# __construct( QControl|QControlBase|QForm $objParentObject, null $strControlId = null )

Constructor

Constructor

Parameters

$objParentObject
Parent object
$strControlId
Control ID (optional)

Throws

Exception|QCallerException

Overrides

QPaginatedControl::__construct()
public
# AddColumn( QDataGridLegacyColumn $objColumn )

Add a column to the QDataGridLegacy

Add a column to the QDataGridLegacy

Parameters

$objColumn
The column to be added
public
# AddColumnAt( integer $intColumnIndex, QDataGridLegacyColumn $objColumn )

Add a column at a given index

Add a column at a given index

Parameters

$intColumnIndex
$objColumn

Throws

Exception|QCallerException|QIndexOutOfRangeException|QInvalidCastException
public
# RemoveColumn( integer $intColumnIndex )

Removes a column from the datagrid given the index of the column

Removes a column from the datagrid given the index of the column

Parameters

$intColumnIndex
The index of column which has to be removed

Throws

Exception
QCallerException
QIndexOutOfRangeException
QInvalidCastException
public
# RemoveColumnByName( string $strName )

Removes a column from the datagrid (the first column that matches) given the name of the column

Removes a column from the datagrid (the first column that matches) given the name of the column

Parameters

$strName
Name of the column
public
# RemoveColumnsByName( string $strName )

Remove all column from the datagrid given the column name

Remove all column from the datagrid given the column name

Parameters

$strName
Name of the column
public
# RemoveAllColumns( )

Remove all columns from the QDataGridLegacy

Remove all columns from the QDataGridLegacy

public array|QDataGridLegacyColumn[]
# GetAllColumns( )

Returns the array of all columns in the QDataGridLegacy

Returns the array of all columns in the QDataGridLegacy

Returns

array|QDataGridLegacyColumn[]
public QDataGridLegacyColumn|null
# GetColumn( integer $intColumnIndex )

Returns a column from the QDataGridLegacy given its index

Returns a column from the QDataGridLegacy given its index

Parameters

$intColumnIndex
Index of the column

Returns

QDataGridLegacyColumn|null
public QDataGridLegacyColumn|null
# GetColumnByName( string $strName )

Returns a column from the QDataGridLegacy given its name

Returns a column from the QDataGridLegacy given its name

Parameters

$strName
Name of the column

Returns

QDataGridLegacyColumn|null
The found column
public QDataGridLegacyColumn[]
# GetColumnsByName( string $strName )

Returns an array of columns of same name from the QDataGridLegacy

Returns an array of columns of same name from the QDataGridLegacy

Parameters

$strName
Name of the column

Returns

QDataGridLegacyColumn[]
Array of found columns
public
# OverrideRowStyle( integer $intRowIndex, QDataGridLegacyRowStyle $objStyle )

Overrides the style of a QDataGridLegacy row given a style object

Overrides the style of a QDataGridLegacy row given a style object

If you want to override a SPECIFIC row's style, you can specify the RowIndex and the DataGridRowStyle with which to override

Parameters

$intRowIndex
Index of the row
$objStyle
Style object to be applied to the row

Throws

Exception|QCallerException|QInvalidCastException
protected string
# ParseColumnHtml( QDataGridLegacyColumn $objColumn, mixed $objObject )

Wrapper around static function ParseHtml of this class

Wrapper around static function ParseHtml of this class

Parameters

$objColumn
Column which is to be parsed
$objObject
An element from DataSource which is interpreted as '$_ITEM' in template

Returns

string

Throws

Exception|QCallerException
public static string
# ParseHtml( string $strHtml, QDataGridLegacyBase|QDataGridLegacy $objControl, QDataGridLegacyColumn $objColumn, mixed $objObject )

Parses the HTML written in the template and replaces the value of expressions and returns the HTML Used upon rendering to find backticks and perform PHP eval's

Parses the HTML written in the template and replaces the value of expressions and returns the HTML Used upon rendering to find backticks and perform PHP eval's

Parameters

$strHtml
Expression to be evaluated and converted into the final HTML
$objControl
This object (the QDataGridLegacy)
$objColumn
Column which is to be parsed
$objObject
An element from DataSource which is interpreted as '$_ITEM' in template

Returns

string

Throws

Exception|QCallerException
public
# ParsePostData( )

This method does absolutely nothing and is here because of constraints (derived from an abstract class) This is because the Table, itself, should have no actions defined on it and should not be parsing anything

This method does absolutely nothing and is here because of constraints (derived from an abstract class) This is because the Table, itself, should have no actions defined on it and should not be parsing anything

public
# Sort_Click( string $strFormId, string $strControlId, string $strParameter )

Parse the _POST to see if the user is requesting a change in the sort column or page NOTE: This is an event handler (hence not all parameters of this method are used in its body)

Parse the _POST to see if the user is requesting a change in the sort column or page NOTE: This is an event handler (hence not all parameters of this method are used in its body)

Parameters

$strFormId
Form ID
$strControlId
Control ID
$strParameter
Action Parameter

Throws

Exception|QCallerException|QInvalidCastException
protected string
# GetPaginatorRowHtml( QPaginator $objPaginator )

Get the HTML for the paginator associated with this QDataGridLegacy

Get the HTML for the paginator associated with this QDataGridLegacy

Parameters

$objPaginator

Returns

string
HTML to be returned
protected string
# GetHeaderSortedHtml( QDataGridLegacyColumn $objColumn )

Returns the HTML for the row header if the result was sorted by that row

Returns the HTML for the row header if the result was sorted by that row

Parameters

$objColumn

Returns

string
HTML for the sorted header column
protected string
# GetHeaderRowHtml( )

Returns the HTML for the header row

Returns the HTML for the header row

Returns

string
HTML for the header row
protected string
# GetDataGridRowHtml( $objObject )

Parameters

$objObject

Returns

string
HTML of the row

Throws

Exception
QCallerException
protected
# GetFooterRowHtml( )

Returns the footer row HTML NOTE: This function currently does nothing but is available for overriding

Returns the footer row HTML NOTE: This function currently does nothing but is available for overriding

protected string
# GetControlHtml( )

Returns the HTML for creating the QDataGridLegacy on user's browser

Returns the HTML for creating the QDataGridLegacy on user's browser

Returns

string
The HTML for the QDataGridLegacy

Throws

Exception|QCallerException
protected
# GetInnerHtml( )
protected string
# GetFilterRowHtml( )

Create the row used for datagrid filtering

Create the row used for datagrid filtering

Returns

string
$strToReturn of html table row
protected string
# GetColumnFilterControlId( QDataGridLegacyColumn $objColumn )

Returns the filter control ID for a column

Returns the filter control ID for a column

Parameters

$objColumn

Returns

string
The column filter control ID
public QTextBox|QListBox
# GetFilterControl( QDataGridLegacyColumn $objColumn )

Returns filter control for a given QDataGridLegacyColumn

Returns filter control for a given QDataGridLegacyColumn

Parameters

$objColumn
The column whose filter control is needed

Returns

QTextBox|QListBox
public null|QButton
# GetResetButton( QDataGridLegacyColumn $objColumn )

Returns the reset button for the QDataGridLegacy which will be used in the filter row (filter row is the row at the top for filtering data)

Returns the reset button for the QDataGridLegacy which will be used in the filter row (filter row is the row at the top for filtering data)

Parameters

$objColumn

Returns

null|QButton
protected QControl
# CreateFilterControl( string $strControlId, QDataGridLegacyColumn $objColumn )

CreateControls used in the filter row and set their fiter values if available. NOTE: this function, btnReset_Click and GetControlValue are the functions to override/change if you want to add new types

CreateControls used in the filter row and set their fiter values if available. NOTE: this function, btnReset_Click and GetControlValue are the functions to override/change if you want to add new types

Parameters

$strControlId
id based on the column that the control is contained
$objColumn
the QDataGridLegacyColumn that contains the filter data.

Returns

QControl
$control the input control used for filtering
protected
# GetFilterControlValue( $strFilterType, $ctlControl )
protected QTextBox
# filterTextBox_Create( string $strControlId, string $strControlName, integer $columns, string $strValue )

This function creates a textbox suitable for the filter bar

This function creates a textbox suitable for the filter bar

Parameters

$strControlId
id based on the column that the control is contained
$strControlName
The name to give the textbox
$columns
The Columns setting to use for the textbox
$strValue
The text to fill the textbox with

Returns

QTextBox
the resulting textbox
protected QListBox
# filterListBox_Create( string $strControlId, string $strControlName, string[] $arrListValues, string $strSelectedValue )

This function creates a listbox suitable for the filter bar

This function creates a listbox suitable for the filter bar

Parameters

$strControlId
id based on the column that the control is contained
$strControlName
The name to give the textbox
$arrListValues
A name=>value array of items to add to the list
$strSelectedValue
The value to start selected

Returns

QListBox
the resulting listbox
protected QButton
# btnFilterReset_Create( )

Creates the reset button for the filter row

Creates the reset button for the filter row

Returns

QButton
protected QButton
# btnFilter_Create( )

Creates the Filter button for the filter row

Creates the Filter button for the filter row

Returns

QButton
protected
# objWaitIcon_Create( )

Creates the objWaitIcon for this datagrid, since we don't want to use the default form one

Creates the objWaitIcon for this datagrid, since we don't want to use the default form one

public
# btnFilter_Click( string $strFormId, string $strControlId, string $strParameter )

For each column, get its input filter value and set the columns filter with it. NOTE: this is a regular event handler method

For each column, get its input filter value and set the columns filter with it. NOTE: this is a regular event handler method

Parameters

$strFormId
Form ID of the form in which this data grid is defined
$strControlId
Control ID of the datagrid
$strParameter
Action parameter
public
# ClearFilters( )

Clear all filter column control input values.

Clear all filter column control input values.

public
# btnFilterReset_Click( string $strFormId, string $strControlId, string $strParameter )

Click handler for the reset button NOTE: This function, GetControlValue and CreateControl are the functions to override/change if you want to add new types

Click handler for the reset button NOTE: This function, GetControlValue and CreateControl are the functions to override/change if you want to add new types

Parameters

$strFormId
Form ID
$strControlId
Control ID
$strParameter
Action Parameter
public
# SetFilters( array $filters )

Set Filter values (used to restore a previously saved state)

Set Filter values (used to restore a previously saved state)

Parameters

$filters

array of filters indexed by column name contain either a string or a filter object

public array
# GetFilters( )

Get Filter values from each column (used to save a state)

Get Filter values from each column (used to save a state)

Returns

array
$filters array of filters indexed by column name
public mixed
# GetState( )

Returns the current state of the control to be able to restore it later.

Returns the current state of the control to be able to restore it later.

Returns

mixed

Overrides

QControlBase::GetState()
public
# PutState( mixed $state )

Restore the state of the control.

Restore the state of the control.

Parameters

$state
Previously saved state as returned by GetState above.

Overrides

QControlBase::PutState()
public mixed
# __get( string $strName )

PHP magic method

PHP magic method

Parameters

$strName

Returns

mixed

Throws

Exception|QCallerException

Overrides

QPaginatedControl::__get()
public mixed
# __set( string $strName, string $mixValue )

PHP magic method

PHP magic method

Parameters

$strName
$mixValue

Returns

mixed

Throws

Exception
QCallerException
QInvalidCastException

Overrides

QPaginatedControl::__set()
Methods inherited from QPaginatedControl
DataBind(), Validate()
Methods inherited from QControlBase
AddAction(), AddActionArray(), AddAttributeScript(), AddChildControl(), AddCssFile(), AddJavascriptFile(), AddPluginCssFile(), AddPluginJavascriptFile(), AddWrapperCssClass(), Blink(), EvaluateTemplate(), Focus(), ForgetState(), GetAllActions(), GetAttributes(), GetChildControl(), GetChildControls(), GetControlFromHierarchyByMethodName(), GetCustomAttribute(), GetCustomAttributes(), GetCustomStyle(), GetEndHtml(), GetEndScript(), GetForm(), GetJavaScriptForEvent(), GetJqControlId(), GetModelConnectorParams(), GetNonWrappedHtml(), GetStyleAttributes(), GetTemplatePath(), GetWrapperAttributes(), GetWrapperStyleAttributes(), GetWrapperStyler(), IsDescendantOf(), IsModified(), MakeCurrent(), MarkAsModified(), MarkAsRendered(), MarkAsWrapperModified(), ProcessActionParameters(), Refresh(), RemoveAllActions(), RemoveChildControl(), RemoveChildControls(), RemoveCustomAttribute(), RemoveCustomStyle(), RemoveWrapperCssClass(), Render(), RenderActionScripts(), RenderAjax(), RenderAttributeScripts(), RenderChildren(), RenderComment(), RenderCssStyles(), RenderExtensionRenderer(), RenderHelper(), RenderHtmlAttributes(), RenderOutput(), RenderWithError(), RenderWithName(), RenderWrappedOutput(), ResetFlags(), ResetOnPageStatus(), SetCustomAttribute(), SetCustomStyle(), SetFocus(), SetForm(), SetParentControl(), Sleep(), SleepHelper(), ValidateControlAndChildren(), ValidationReset(), VarExport(), Wakeup(), WakeupHelper(), Watch(), _CallActionMethod(), _ProcessActionParams(), _ReadState(), _WriteState()
Methods inherited from QHtmlAttributeManagerBase
AddCssClass(), GetCssStyle(), GetDataAttribute(), GetHtmlAttribute(), GetHtmlAttributes(), HasCssClass(), HasCssStyle(), HasHtmlAttribute(), Override(), RemoveCssClass(), RemoveCssClassesByPrefix(), RemoveCssStyle(), RemoveDataAttribute(), RemoveHtmlAttribute(), RenderTag(), SetCssBoxValue(), SetCssClass(), SetCssStyle(), SetDataAttribute(), SetHtmlAttribute()
Methods inherited from QBaseClass
OverrideAttributes(), __call()
Methods used from QDataBinder
CallDataBinder(), GetForm(), HasDataBinder(), SetDataBinder(), Sleep(), Wakeup()
Constants inherited from QControlBase
CommentEnd, CommentStart
Properties summary
protected null|QDataGridLegacyRowStyle $objAlternateRowStyle

Row style for alternate rows

Row style for alternate rows

# null
protected null|QDataGridLegacyRowStyle $objHeaderRowStyle

Style for the top row (not the filter row)

Style for the top row (not the filter row)

# null
protected null|QDataGridLegacyRowStyle $objFilterRowStyle

Style for the filter row (not the top row)

Style for the filter row (not the top row)

# null
protected null|QDataGridLegacyRowStyle[] $objOverrideRowStyleArray

List of styles for corresponding rows (in intRowNumber => objStyleObject style)

List of styles for corresponding rows (in intRowNumber => objStyleObject style)

# null
protected null|QDataGridLegacyRowStyle $objHeaderLinkStyle

Style object for the links header

Style object for the links header

# null
protected null|QDataGridLegacyRowStyle $objRowStyle

Row style for rown in the datagrid

Row style for rown in the datagrid

# null
protected string|QWaitIcon $objWaitIcon

Wait icon for Ajax Actions

Wait icon for Ajax Actions

# 'default'
protected integer $intCellPadding

CellPadding. Deprecated.

CellPadding. Deprecated.

# -1
protected integer $intCellSpacing

CellSpacing. Deprecated.

CellSpacing. Deprecated.

# -1
protected boolean $blnShowHeader

Show the header for the table?

Show the header for the table?

# true
protected boolean $blnShowFilter

Determines if the filter row has to be shown or not

Determines if the filter row has to be shown or not

# false
protected boolean $blnShowFilterButton

Determines if the filter button has to be shown or not

Determines if the filter button has to be shown or not

# true
protected boolean $blnShowFilterResetButton

Determines if the reset button on the filter row has to be shown or not

Determines if the reset button on the filter row has to be shown or not

# true
protected boolean $blnShowFooter

Determines of the footer has to be shown or not

Determines of the footer has to be shown or not

# false
protected Deprecated. $strGridLines

Rules attribute of table. Not supported in HTML 5.

Rules attribute of table. Not supported in HTML 5.

#
protected QDataGridLegacyColumn[] $objColumnArray
#
protected integer $intRowCount

Number of rows in the current render

Number of rows in the current render

# 0
protected integer $intCurrentRowIndex

The index of the row being processed (This variable is used internally)

The index of the row being processed (This variable is used internally)

#
protected integer $intSortColumnIndex

Column index by which we are sorting the results

Column index by which we are sorting the results

# -1
protected integer $intCurrentColumnId

The index of column under consideration (This variable is used internally)

The index of column under consideration (This variable is used internally)

# 1
protected integer $intSortDirection

Sort is ascending (0) or descending (1)

Sort is ascending (0) or descending (1)

# 0
protected string $strLabelForNoneFound

Format string for the label to show on the paginator when no result is found (Please see constructor for default values)

Format string for the label to show on the paginator when no result is found (Please see constructor for default values)

#
protected string $strLabelForOneFound

Format string for the label to show on the paginator when one result is found (Please see constructor for default values)

Format string for the label to show on the paginator when one result is found (Please see constructor for default values)

#
protected string $strLabelForMultipleFound

Format string for the label to show on the paginator when more than one entry is found (Please see constructor for default values)

Format string for the label to show on the paginator when more than one entry is found (Please see constructor for default values)

#
protected string $strLabelForPaginated

Format string for the label to show on the paginator indicating current results window This format string is responsible for telling the user about the current chunk of results that he/she is viewing. It produces strings like: - Results: Viewing Cars 11-20 of 72

        Please see constructor for the way this format string is to be specified

Format string for the label to show on the paginator indicating current results window This format string is responsible for telling the user about the current chunk of results that he/she is viewing. It produces strings like: - Results: Viewing Cars 11-20 of 72 Please see constructor for the way this format string is to be specified

#
protected string $strRowActionParameterHtml

String which evaluates as the ActionParameter for row of the result. This one is used for passing a string as an action parameter for the entire row and can be used inside an event handler which handles click on an entire row of the QDataGridLegacy. The event handler will recieve the value determined by the evaluation of this string.

String which evaluates as the ActionParameter for row of the result. This one is used for passing a string as an action parameter for the entire row and can be used inside an event handler which handles click on an entire row of the QDataGridLegacy. The event handler will recieve the value determined by the evaluation of this string.

#
protected QEvent[] $objRowEventArray

List of events for which actions have to be taken

List of events for which actions have to be taken

# array()
protected QAction[] $objRowActionArray

List of actions to be taken (elements will correspond to the row event array)

List of actions to be taken (elements will correspond to the row event array)

# array()
protected null $objOwner

Owner table of this QDataGridLegacy (not being used right now)

Owner table of this QDataGridLegacy (not being used right now)

# null
protected null|QButton $btnFilter

Button for filtering results (is rendered on the filter row on top)

Button for filtering results (is rendered on the filter row on top)

# null
protected array|QButton[] $btnFilterResetArray
# array()
protected QControlProxy $prxDatagridSorting

Proxy used for sorting QDataGridLegacy by a particular column

Proxy used for sorting QDataGridLegacy by a particular column

#
Properties inherited from QPaginatedControl
$blnIsBlockElement, $blnUseAjax, $objDataSource, $objPaginator, $objPaginatorAlternate, $strNoun, $strNounPlural
Properties inherited from QControlBase
$blnActionsMustTerminate, $blnAutoRender, $blnDisplay, $blnMinimize, $blnModified, $blnOnPage, $blnRendered, $blnRendering, $blnRequired, $blnSaveState, $blnScriptsOnly, $blnUseWrapper, $blnVisible, $blnWrapLabel, $blnWrapperModified, $mixActionParameter, $mixCausesValidation, $objActionArray, $objChildControlArray, $objDraggable, $objDroppable, $objForm, $objLinkedNode, $objParentControl, $objResizable, $objWatcher, $objWrapperStyler, $strAttributeScripts, $strControlId, $strCssClass, $strCustomAttributeArray, $strCustomStyleArray, $strFormAttributes, $strHtmlAfter, $strHtmlBefore, $strInstructions, $strJavaScripts, $strName, $strPreferredRenderMethod, $strRenderMethod, $strStyleSheets, $strValidationError, $strWarning
Properties inherited from QHtmlAttributeManagerBase
$attributes, $styles
Properties used from QDataBinder
$objDataBinder
)

Magic properties summary
public QDataGridLegacyRowStyle $AlternateRowStyle

is the DataGridRowStyle object that defines how "alternating rows" should be displayed

public QDataGridLegacyRowStyle $HeaderRowStyle

is the DataGridRowStyle object that defines how the "header row" should be displayed (attributes that get rendred in the header row's

public QDataGridLegacyRowStyle $FilterRowStyle

The row style for the filter row at the top

public QDataGridLegacyRowStyle $HeaderLinkStyle

is the DataGridRowStyle object that defines how links, specifically, in the header row should be displayed. Basically, anything defined here will show up as html attributes and css styles within the '' tag of the link, itself, in the header. Links in the header ONLY GET DISPLAYED when a column is sortable

public QDataGridLegacyRowStyle $RowStyle

is the main or "default" DataGridRowStyle for the entire table. Any overriding row style (see "OverrideRowStyle(int, DataGridRowStyle)" below) or any appearance properties set in AlternateRowStyle or HeaderRowStyle will be applied in those specific situations. Any appearance properties NOT set in ovverrides, alternate, or header will simply default to what RowStyle has defined.

public integer $CellPadding

refers the the HTML CellPadding attribute of the

<

table>. Not supported in HTML 5.

public integer $CellSpacing

refers the the HTML CellSpacing attribute of the

<

table> Not supported in HTML 5.

public string $GridLines

refers the the HTML rules attribute of the

<

table>. Not supported in HTML 5.

public boolean $ShowHeader

is the flag of whether or not to show the Header row

public boolean $ShowFooter
public boolean $ShowFilter
public boolean $ShowFilterButton

Should the filter button (on filter row) be shown?

public boolean $ShowFilterResetButton

Should the reset filter button (on filter row) be shown?

public mixed $OrderByClause
public mixed $SortInfo
public integer $SortColumnIndex

is the current column that is being "sorted by" (or -1 if none)

public integer $SortDirection

specifies the direction of that sort, 0 for SortBy, and 1 for ReverseSortBy

public string $LabelForNoneFound

Format string for the label to show on the paginator when no result is found

public string $LabelForOneFound

Format string for the label to show on the paginator when one result is found

public string $LabelForMultipleFound

Format string for the label to show on the paginator when more than one result is found

public string $LabelForPaginated

Format string for the label to show on the paginator indicating current results window

public mixed $Owner
public mixed $FilterInfo
public mixed $Conditions
public read-only integer $CurrentRowIndex

is the current row index that is being rendered. Useful for render-helper functions that may get called when rendering the datagrid, itself

public read-only QButton $FilterButton

Button to filter the results (if filtering is enabled)

public read-only QWaitIcon $WaitIcon

Wait icon (e.g. a spinner) to be shown while filtering is being done on the server

public write-only QPaginatorBase $Paginator

Paginator to go browse through results

public write-only QPaginatorBase $PaginatorAlternate

A second paginator to go browse through results (can be used at bottom)

public write-only boolean $UseAjax

Will the paginator use AJAX or not

public write-only string $RowActionParameterHtml

String which evaluates as the ActionParameter for row of the result.

Magic properties inherited from QPaginatedControl
$DataSource, $ItemCount, $ItemsOffset, $ItemsPerPage, $LimitClause, $LimitInfo, $Noun, $NounPlural, $PageCount, $PageNumber, $TotalItemCount
Magic properties inherited from QControlBase
$ActionParameter, $ActionsMustTerminate, $AutoRender, $CausesValidation, $ControlId, $Form, $FormAttributes, $HtmlAfter, $HtmlBefore, $Instructions, $JavaScripts, $LinkedNode, $Minimize, $Modified, $Moveable, $Name, $OnPage, $ParentControl, $PreferredRenderMethod, $RenderMethod, $Rendered, $Rendering, $Required, $Resizable, $SaveState, $ScriptsOnly, $StyleSheets, $UseWrapper, $ValidationError, $Visible, $Warning, $WrapLabel, $WrapperCssClass, $WrapperModified
Magic properties inherited from QHtmlAttributeManagerBase
$AccessKey, $AltText, $BackColor, $BorderCollapse, $BorderColor, $BorderStyle, $BorderWidth, $CssClass, $Cursor, $Data, $Display, $DisplayStyle, $Enabled, $FontBold, $FontItalic, $FontNames, $FontOverline, $FontSize, $FontStrikeout, $FontUnderline, $ForeColor, $Height, $HorizontalAlign, $Left, $Margin, $NoWrap, $Opacity, $OrderedListType, $Overflow, $Padding, $Position, $ReadOnly, $TabIndex, $ToolTip, $Top, $UnorderedListStyle, $VerticalAlign, $Width
API documentation generated by ApiGen