returns the id of an item
$dataItem->get_id();
See also:
returns the index of the currently selected item (for example, in grid, it will be the index of a row )
$dataItem->get_index();
Parameters:
returns the value of a field.
$dataItem->get_value($name);
Parameters:
See Also:
sets an attribute for a cell of item.
$dataItem->set_cell_attribute($name,$attr,$value)
Parameters:
See Also:
sets a css class for a cell of item.
$dataItem->set_cell_class($name,$value);
Parameters:
See Also:
sets the style for a cell of item.
$dataItem->set_cell_style($style);
Parameters:
See Also:
sets the id of an item.
$dataItem->set_id($value);
Parameters:
See also:
assigns options collection to a column.
$dataItem->set_options($name,$options);
Parameters:
Sample:
$grid->set_options("column_id",array("1" => "one", "2" => "two","3" => "three"));
//or
$filter1 = new OptionsConnector($res);
$filter1->render_table("countries","country_id","country_name(value)");
$grid->set_options("column_id",$filter1);
ignores the current item while rendering output. Allows to define custom filtering rules.
$dataItem->skip()
Parameters:
sets attribute for any row in the component.
$dataItem->set_row_attribute($attr,$value);
Parameters:
See Also:
sets color for any row in the component.
$dataItem->set_row_color($color)
Parameters:
See Also:
sets style for any row of the component.
$dataItem->set_row_style($style);
Parameters:
See Also:
sets value of a field.
$dataItem->set_value($name,$value)
Parameters:
See Also:
(available from version 1.5)
sets user data for the item.
$dataItem->set_userdata($name,$value)
Parameters:
See also:
Back to top