TIWCGJQGridCol Class

The TIWCGJQGridCol class

Namespace: IWCGJQGrid
TCGIndexedCollectionItem
  IWCGJQCommon.TIWCGJSon
    IWCGJQGrid.TIWCGJQGridCol
type
 TIWCGJQGridCol = class(TIWCGJSon)
 end;

The TIWCGJQGridCol type exposes the following members.

Show:
 NameDescription
Create(TCollection)

Initializes a new instance of the TIWCGJQGridCol class. (Overrides TIWCGJSon.Create(TCollection).)

CreateSingle(TPersistent,string)

Initializes a new instance of the TIWCGJSon class. (Inherited from TIWCGJSon.)

Destroy

Represents the destructor of the TIWCGJQGridCol class. (Overrides TIWCGJSon.Destroy.)

Top
Show:
 NameDescription
Align

Defines the alignment of the cell in the Body layer, not in header cell. Possible values: left, center, right.

Caption

Represents property Caption.

CaptionAlign

Column caption align

CGJSContainer

Represents property CGJSContainer. (Inherited from TIWCGJSon.)

ClassData

Represents property ClassData. (Inherited from TIWCGJSon.)

Classes

This option allow to add classes to the column. If more than one class will be used a space should be set. By example classes:'class1 class2' will set a class1 and class2 to every cell on that column. In the grid css there is a predefined class ui-ellipsis which allow to attach ellipsis to a particular row. Also this will work in FireFox too.

ColModel

Represents property ColModel.

DateFmt

Governs format of sorttype:date (when datetype is set to local) and editrules {date:true} fields. Determines the expected date format for that column. Uses a PHP-like date formatting. Currently ”/”, ”-”, and ”.” are supported as date separators. Valid formats are: y,Y,yyyy for four digits year YY, yy for two digits year m,mm for months d,dd for days.

DefVal

The default value for the search field. This option is used only in Custom Searching and will be set as initial search.

Editable

Defines if the field is editable. This option is used in cell, inline and form modules. See editing

EditOptions

Array of allowed options (attributes) for edittype option editing

EditRules

sets additional rules for the editable field editing

EditType

Defines the edit type for inline and form editing Possible values: text, textarea, select, checkbox, password, button, image and file. See also editing

FirstSortOrder

If set to asc or desc, the column will be sorted in that direction on first sort.Subsequent sorts of the column will toggle as usual

Fixed

If set to true this option does not allow recalculation of the width of the column if shrinkToFit option is set to true. Also the width does not change if a setGridWidth method is used to change the grid width.

FormatOptions

array Format options can be defined for particular columns, overwriting the defaults from the language file. See Formatter for more details.

FormatOptionsActions

Represents property FormatOptionsActions.

FormatOptionsCheckBox

Represents property FormatOptionsCheckBox.

FormatOptionsClass

Represents property FormatOptionsClass.

FormatOptionsControl

Represents property FormatOptionsControl.

FormatOptionsCurrency

Represents property FormatOptionsCurrency.

FormatOptionsDate

Represents property FormatOptionsDate.

FormatOptionsDateTime

Represents property FormatOptionsDateTime.

FormatOptionsEMail

Represents property FormatOptionsEMail.

FormatOptionsFunction

Represents property FormatOptionsFunction.

FormatOptionsGetData

Represents property FormatOptionsGetData.

FormatOptionsImage

Represents property FormatOptionsImage.

FormatOptionsInteger

Represents property FormatOptionsInteger.

FormatOptionsLink

Represents property FormatOptionsLink.

FormatOptionsLinkClick

Represents property FormatOptionsLinkClick.

FormatOptionsNumber

Represents property FormatOptionsNumber.

FormatOptionsSelect

Represents property FormatOptionsSelect.

FormatOptionsShowLink

Represents property FormatOptionsShowLink.

FormatOptionsStaticImage

Represents property FormatOptionsStaticImage.

FormatOptionsTime

Represents property FormatOptionsTime.

Formatter

The predefined types (string) or custom function name that controls the format of this field. See Formatter for more details.

FormOptions

Defines various options for form editing. See Form options

Frozen

If set to true determines that this column will be frozen after calling the setFrozenColumns method

Hidden

Defines if this column is hidden at initialization.

HideDlg

If set to true this column will not appear in the modal dialog where users can choose which columns to show or hide. See Show/Hide Columns.

Idx

Set the index name when sorting. Passed as sidx parameter.

InstList

Represents property InstList. (Inherited from TIWCGJSon.)

IsStored

Represents property IsStored. (Inherited from TIWCGJSon.)

JSon

Return the Interface of SuperObject (ISuperObject) (Inherited from TIWCGJSon.)

JSonEvents[string]

Represents property JSonEvents[string]. (Inherited from TIWCGJSon.)

JsonMap

Defines the json mapping for the column in the incoming json string. See Retrieving Data

Key

In case if there is no id from server, this can be set as as id for the unique row id. Only one column can have this property. If there are more than one key the grid finds the first one and the second is ignored.

Label_

label string When colNames array is empty, defines the heading for this column. If both the colNames array and this setting are empty, the heading for this column comes from the name property.

List

Represents property List. (Inherited from TIWCGJSon.)

MapID

Represents property MapID.

MappingName

Represents property MappingName.

MemberList

Represents property MemberList. (Inherited from TIWCGJSon.)

Name

Set the unique name in the grid for the column. This property is required. As well as other words used as property/event names, the reserved words (which cannot be used for names) include subgrid, cb and rn.

OnCellAttr

This function add attributes to the cell during the creation of the data - i.e dynamically. By example all valid attributes for the table cell can be used or a style attribute with different properties. The function should return string. Parameters passed to this function are: rowId - the id of the row val - the value which will be added in the cell rawObject - the raw object of the data row - i.e if datatype is json - array, if datatype is xml xml node. cm - all the properties of this column listed in the colModel rdata - the data row which will be inserted in the row. This parameter is array of type name:value, where name is the name in colModel

OnUnformat

Custom function to “unformat” a value of the cell when used in editing See Custom Formatter. (Unformat is also called during sort operations. The value returned by unformat is the value compared during the sort.)

Owner

Represents property Owner. (Inherited from TIWCGJSon.)

Position

Define the Column Position

PropCount

Represents property PropCount. (Inherited from TIWCGJSon.)

PropIndexByName[string]

Represents property PropIndexByName[string]. (Inherited from TIWCGJSon.)

PropList

Represents property PropList. (Inherited from TIWCGJSon.)

PropName

Represents property PropName. (Inherited from TIWCGJSon.)

PropNameByIndex[Integer]

Represents property PropNameByIndex[Integer]. (Inherited from TIWCGJSon.)

ProviderName

The real database field name in case when you have non standard field name, like spaces and/or special chars.

Important Note

Check the Name property, for proper work of component, the name must be unique and clear (without the spaces and special chars)!

Resizable

Defines if the column can be re sized true

Search

When used in search modules, disables or enables searching on that column. Search Configuration

SearchOptions

Defines the search options used searching Search Configuration

SearchRules

Object which contain additional conditions for validating user input

ServerDataUrl

Represents property ServerDataUrl.

ServerEditDataUrl

Represents property ServerEditDataUrl.

ServerSearchDataUrl

Represents property ServerSearchDataUrl.

SObj

Represents property SObj. (Inherited from TIWCGJSon.)

Sortable

Defines is this can be sorted.

SQLFieldName

Define the SQLPrefix to apply to each Column for Search Operations. Fi, if SQLPrefix = 'Customers' and Name = 'Code', the SQL formed will be 'Customers.Code';

SQLName

Represents property SQLName.

SQLPrefix

Define the SQLPrefix to apply to each Column for Search Operations. Fi, if SQLPrefix = 'Customers' and Name = 'Code', the SQL formed will be 'Customers.Code';

SType

Determines the type of the element when searching. See Search Configuration

SummaryTpl

Summary template

SummaryType

Type of summary

SUrl

Valid only in Search ToolBar and edittype : 'select' and describes the url from where we can get already-constructed select element

Title

If this option is false the title is not displayed in that column when we hover a cell with the mouse

Viewable

This option is valid only when viewGridRow method is activated. When the option is set to false the column is does not appear in view Form

Width

Set the initial width of the column, in pixels. This value currently can not be set as percentage

XmlMap

Defines the xml mapping for the column in the incomming xml file. Use a CCS specification for this See Retrieving Data

Top
Show:
 NameDescription
AddBooleanMember(string,Boolean,Boolean,Boolean)

Represents method AddBooleanMember(string,Boolean,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddColorMember(string,TIWCGColor,Boolean,Boolean)

Represents method AddColorMember(string,TIWCGColor,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddCurrencyMember(string,Currency,Boolean,Boolean)

Represents method AddCurrencyMember(string,Currency,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddDoubleMember(string,Double,Boolean,Boolean)

Represents method AddDoubleMember(string,Double,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddDynObjListMember(string,Boolean,Boolean)

Represents method AddDynObjListMember(string,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddEnumMember(string,string[],Byte,Boolean,Boolean)

Represents method AddEnumMember(string,string[],Byte,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddEnumSetMember(string,string[],Void,Word,Boolean,Boolean)

Represents method AddEnumSetMember(string,string[],Void,Word,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddFuncMember(string,string,string,Boolean,TIWCGJSonFuncClass,Boolean,Boolean)

Represents method AddFuncMember(string,string,string,Boolean,TIWCGJSonFuncClass,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddHTML5(TIWHTMLTag)

Represents method AddHTML5(TIWHTMLTag). (Inherited from TIWCGJSon.)

AddIntegerMember(string,Integer,Boolean,Boolean)

Represents method AddIntegerMember(string,Integer,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddJSonMember(string,TCGJSon,Boolean,Boolean)

Represents method AddJSonMember(string,TCGJSon,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddMembers

The procedure add jquery properties.

Notes to Inheritors

Override this procedure to add jquery plugin options.

 (Overrides TIWCGJSon.AddMembers.)
AddObjListMember(string,TIWCGJSonListClass,Boolean,Boolean,Boolean)

Represents method AddObjListMember(string,TIWCGJSonListClass,Boolean,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddObjMember(string,TIWCGJSonClass,Boolean,Boolean,Boolean)

Represents method AddObjMember(string,TIWCGJSonClass,Boolean,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddSimpleArrayMember(string,Boolean,Boolean,Boolean)

Represents method AddSimpleArrayMember(string,Boolean,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddStringMember(string,string,Boolean,Boolean)

Represents method AddStringMember(string,string,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddVariantMember(string,Variant,Boolean,Boolean)

Represents method AddVariantMember(string,Variant,Boolean,Boolean). (Inherited from TIWCGJSon.)

AfterConstruction

Represents method AfterConstruction. (Inherited from TIWCGJSon.)

Assign(TPersistent)

Represents method Assign(TPersistent). (Inherited from TIWCGJSon.)

CheckJSonMember(Integer)

Represents method CheckJSonMember(Integer). (Inherited from TIWCGJSon.)

ConvertEnumToString(string)

Represents method ConvertEnumToString(string). (Inherited from TIWCGJSon.)

ConvertSetToString(string,TCGStringArray)

Represents method ConvertSetToString(string,TCGStringArray). (Inherited from TIWCGJSon.)

DoGetImage(string,string,string,TIWCGJQGridColImageProps)

Represents method DoGetImage(string,string,string,TIWCGJQGridColImageProps).

DoGetLink(string,string,string)

Represents method DoGetLink(string,string,string).

DoUpdateCellControl(TControl,Integer,string,string,Boolean)

Represents method DoUpdateCellControl(TControl,Integer,string,string,Boolean).

DoUpdateControl(string,string)

Represents method DoUpdateControl(string,string).

FreeJSonObj(Integer)

Overloaded. Represents method FreeJSonObj(Integer). (Inherited from TIWCGJSon.)

FreeJSonObj(string)

Overloaded. Represents method FreeJSonObj(string). (Inherited from TIWCGJSon.)

GetBooleanValue(Integer)

Represents method GetBooleanValue(Integer). (Inherited from TIWCGJSon.)

GetCGJSContainer

Represents method GetCGJSContainer. (Inherited from TIWCGJSon.)

GetColorValue(Integer)

Represents method GetColorValue(Integer). (Inherited from TIWCGJSon.)

GetCurrencyValue(Integer)

Represents method GetCurrencyValue(Integer). (Inherited from TIWCGJSon.)

GetCustomJq(string,ISuperObject)

Represents method GetCustomJq(string,ISuperObject). (Overrides TIWCGJSon.GetCustomJq(string,ISuperObject).)

GetDisplayName

Represents method GetDisplayName.

GetDoubleValue(Integer)

Represents method GetDoubleValue(Integer). (Inherited from TIWCGJSon.)

GetDynObjListValue(Integer)

Represents method GetDynObjListValue(Integer). (Inherited from TIWCGJSon.)

GetEnumAsString(Integer)

Represents method GetEnumAsString(Integer). (Inherited from TIWCGJSon.)

GetEnumerValue(Integer)

Represents method GetEnumerValue(Integer). (Inherited from TIWCGJSon.)

GetEnumSetValue(Integer,Pointer)

Represents method GetEnumSetValue(Integer,Pointer). (Inherited from TIWCGJSon.)

GetFixedScript(TIWCGJSonFunc,Boolean)

Represents method GetFixedScript(TIWCGJSonFunc,Boolean). (Overrides TIWCGJSon.GetFixedScript(TIWCGJSonFunc,Boolean).)

GetFormatterOptionsClass(TIWCGJQGridColFormatter)

Represents method GetFormatterOptionsClass(TIWCGJQGridColFormatter).

GetFuncValue(Integer)

Represents method GetFuncValue(Integer). (Inherited from TIWCGJSon.)

GetHTMLName

Represents method GetHTMLName. (Inherited from TIWCGJSon.)

GetImplComponent

Represents method GetImplComponent. (Inherited from TIWCGJSon.)

GetIntegerValue(Integer)

Represents method GetIntegerValue(Integer). (Inherited from TIWCGJSon.)

GetIsStored

Represents method GetIsStored. (Inherited from TIWCGJSon.)

GetItemIndex

Represents method GetItemIndex. (Inherited from TIWCGJSon.)

GetIWCLName

Represents method GetIWCLName. (Inherited from TIWCGJSon.)

GetJSon

Represents method GetJSon. (Inherited from TIWCGJSon.)

GetJSonByType(Boolean,Boolean)

Represents method GetJSonByType(Boolean,Boolean). (Inherited from TIWCGJSon.)

GetJSonEx(Boolean,Boolean,TIWCGResponseMemberList,Boolean)

Represents method GetJSonEx(Boolean,Boolean,TIWCGResponseMemberList,Boolean). (Overrides TIWCGJSon.GetJSonEx(Boolean,Boolean,TIWCGResponseMemberList,Boolean).)

GetJSonValue(Integer)

Represents method GetJSonValue(Integer). (Inherited from TIWCGJSon.)

GetJSonValueObj(Integer)

Represents method GetJSonValueObj(Integer). (Inherited from TIWCGJSon.)

GetMemberJSon(TCGJSonMember,ISuperObject,Boolean,Boolean,string)

Represents method GetMemberJSon(TCGJSonMember,ISuperObject,Boolean,Boolean,string). (Inherited from TIWCGJSon.)

GetMemberSetterHandler(TObject,TCGJSonMember)

Represents method GetMemberSetterHandler(TObject,TCGJSonMember). (Inherited from TIWCGJSon.)

GetMemberSetterScriptParts(TIWCGResponseMemberList,TIWCGJScript)

Represents method GetMemberSetterScriptParts(TIWCGResponseMemberList,TIWCGJScript). (Overrides TIWCGJSon.GetMemberSetterScriptParts(TIWCGResponseMemberList,TIWCGJScript).)

GetMembersJSon(TIWCGResponseMemberList,Boolean,Boolean)

Represents method GetMembersJSon(TIWCGResponseMemberList,Boolean,Boolean). (Inherited from TIWCGJSon.)

GetObjListValue(Integer)

Represents method GetObjListValue(Integer). (Inherited from TIWCGJSon.)

GetObjValue(Integer)

Represents method GetObjValue(Integer). (Inherited from TIWCGJSon.)

GetOwner

Represents method GetOwner. (Inherited from TIWCGJSon.)

GetPropName

Represents method GetPropName. (Inherited from TIWCGJSon.)

GetSimpleArrayValue(Integer)

Represents method GetSimpleArrayValue(Integer). (Inherited from TIWCGJSon.)

GetStringValue(Integer)

Represents method GetStringValue(Integer). (Inherited from TIWCGJSon.)

GetVariantValue(Integer)

Represents method GetVariantValue(Integer). (Inherited from TIWCGJSon.)

InternalGetJSon(TEachPropJSonProc,Boolean,Boolean,Void,Boolean,Boolean,TIWCGResponseMemberList,Boolean)

Represents method InternalGetJSon(TEachPropJSonProc,Boolean,Boolean,Void,Boolean,Boolean,TIWCGResponseMemberList,Boolean). (Inherited from TIWCGJSon.)

IsArray

Represents method IsArray. (Inherited from TIWCGJSon.)

IsBooleanStored(Integer)

Represents method IsBooleanStored(Integer). (Inherited from TIWCGJSon.)

IsColorStored(Integer)

Represents method IsColorStored(Integer). (Inherited from TIWCGJSon.)

IsCurrencyStored(Integer)

Represents method IsCurrencyStored(Integer). (Inherited from TIWCGJSon.)

IsDoubleStored(Integer)

Represents method IsDoubleStored(Integer). (Inherited from TIWCGJSon.)

IsEnumerStored(Integer)

Represents method IsEnumerStored(Integer). (Inherited from TIWCGJSon.)

IsEnumSetStored(Integer)

Represents method IsEnumSetStored(Integer). (Inherited from TIWCGJSon.)

IsFuncStored(Integer)

Represents method IsFuncStored(Integer). (Inherited from TIWCGJSon.)

IsIntegerStored(Integer)

Represents method IsIntegerStored(Integer). (Inherited from TIWCGJSon.)

IsJSonObjStored(string)

Represents method IsJSonObjStored(string). (Inherited from TIWCGJSon.)

IsJSonStored(Integer)

Represents method IsJSonStored(Integer). (Inherited from TIWCGJSon.)

IsObjStored(Integer)

Represents method IsObjStored(Integer). (Inherited from TIWCGJSon.)

IsStringStored(Integer)

Represents method IsStringStored(Integer). (Inherited from TIWCGJSon.)

IsVariantStored(Integer)

Represents method IsVariantStored(Integer). (Inherited from TIWCGJSon.)

JSonEscape

Represents method JSonEscape. (Inherited from TIWCGJSon.)

JSonIdent

Represents method JSonIdent. (Inherited from TIWCGJSon.)

JSonNameQuote

Represents method JSonNameQuote. (Inherited from TIWCGJSon.)

ResetProps

Represents method ResetProps. (Inherited from TIWCGJSon.)

SetBooleanValue(Integer,Boolean)

Represents method SetBooleanValue(Integer,Boolean). (Inherited from TIWCGJSon.)

SetColorValue(Integer,TIWCGColor)

Represents method SetColorValue(Integer,TIWCGColor). (Inherited from TIWCGJSon.)

SetCurrencyValue(Integer,Currency)

Represents method SetCurrencyValue(Integer,Currency). (Inherited from TIWCGJSon.)

SetDoubleValue(Integer,Double)

Represents method SetDoubleValue(Integer,Double). (Inherited from TIWCGJSon.)

SetDynObjListValue(Integer,TIWCGJSonDynObjList)

Represents method SetDynObjListValue(Integer,TIWCGJSonDynObjList). (Inherited from TIWCGJSon.)

SetEnumerValue(Integer,Byte)

Represents method SetEnumerValue(Integer,Byte). (Inherited from TIWCGJSon.)

SetEnumSetValue(Integer,Pointer)

Represents method SetEnumSetValue(Integer,Pointer). (Inherited from TIWCGJSon.)

SetFuncValue(Integer,TIWCGJSonFunc)

Represents method SetFuncValue(Integer,TIWCGJSonFunc). (Inherited from TIWCGJSon.)

SetIntegerValue(Integer,Integer)

Represents method SetIntegerValue(Integer,Integer). (Inherited from TIWCGJSon.)

SetJSonValue(Integer,TCGJSon)

Represents method SetJSonValue(Integer,TCGJSon). (Inherited from TIWCGJSon.)

SetObjListValue(Integer,TIWCGJSonList)

Represents method SetObjListValue(Integer,TIWCGJSonList). (Inherited from TIWCGJSon.)

SetObjValue(Integer,TIWCGJSon)

Represents method SetObjValue(Integer,TIWCGJSon). (Inherited from TIWCGJSon.)

SetSimpleArrayValue(Integer,TIWCGJSonSimpleArray)

Represents method SetSimpleArrayValue(Integer,TIWCGJSonSimpleArray). (Inherited from TIWCGJSon.)

SetStringValue(Integer,string)

Represents method SetStringValue(Integer,string). (Inherited from TIWCGJSon.)

SetVariantValue(Integer,Variant)

Represents method SetVariantValue(Integer,Variant). (Inherited from TIWCGJSon.)

StoreProperty(PPropInfo,TObject)

Represents method StoreProperty(PPropInfo,TObject). (Inherited from TIWCGJSon.)

SupportsSetter(TObject,TCGJSonMember)

Represents method SupportsSetter(TObject,TCGJSonMember). (Overrides TIWCGJSon.SupportsSetter(TObject,TCGJSonMember).)

Top
Show:
 NameDescription
OnGetEditSelectData

Called to get the Edit Values when Formatter is Select.

OnGetImage

Get the Image for each row. For columns with formatter Image

OnGetImageEx

Get the Image for each row. For columns with formatter Image

OnGetLink

To Get a Link for columns with formatter ShowLink

OnGetSearchSelectData

Called to get the Search Values when Formatter is Select.

OnUpdateCellControl

This event is used when Col.Formatter = gcfControl and FormatOptionsControl.CreateCellsOnRender = True. When assigned, allows to set the properties to the cell controls, using FindCellControl

OnUpdateControl

This event is used when Col.Formatter = gcfControl and FormatOptionsControl.CreateCellsOnRender = False. It's called before grids create a cell control based on ControlTemplate. User should update the properties in the ControlTemplate and childs. After this, the Grid will create cloned cell controls

_Events_

Represents property _Events_. (Inherited from TIWCGJSon.)

Top