returns id of the item.
<cfset dataItem.get_id()>
See also:
returns an index of the currently selected item (for example, in grid, it will be an index of row )
<cfset dataItem.get_index()>
Parameters:
returns value of a field.
<cfset dataItem.get_value(name)>
Parameters:
name - name or alias of the field. See Also:
sets attribute for a cell of item.
<cfset dataItem.set_cell_attribute(name,attr,value)>
Parameters:
value - value of attribute See Also:
sets css class for a cell of item.
<cfset dataItem.set_cell_class(name,value)>
Parameters:
See Also:
sets style for a cell of item.
<cfset dataItem.set_cell_style(style)>
Parameters:
See Also:
sets id of the item.
<cfset dataItem.set_id(value)>
Parameters:
See also:
assigns options collection to the column.
<cfset dataItem.set_options(name, options)>
Parameters:
Sample:
<cfset dataItem.set_options("column_id",array(
"1" => "one", "2" => "two","3" => "three"))>
<!---or--->
<cfset list = createObject("component","dhtmlxConnectors.OptionsConnector").init(
"#datasource#",
"MySQL"
)>
<cfset list.render_table(
"countries",
"country_id",
"country_id(value),country_name(label)"
)>
<cfset grid.set_options("column_id",list)>
ignores the current item while rendering output. Allows to define custom filtering rules.
<cfset dataItem.skip()>
Parameters:
sets attribute for any row in the component.
<cfset dataItem.set_row_attribute(attr, value)>
Parameters:
See Also:
sets color for any row in the component.
<cfset dataItem.set_row_color(color)>
Parameters:
See Also:
sets style for any row of the component.
<cfset dataItem.set_row_style(style)>
Parameters:
See Also:
sets value of a field.
<cfset dataItem.set_value(name, value)>
Parameters:
See Also:
Back to top