DHTMLX Docs & Samples Explorer

dhtmlxGrid

get_id

returns id of the item.

$dataItem->get_id();

See also:

get_index

returns an index of the currently selected item (for example, in grid, it will be an index of row )

$dataItem->get_index();

Parameters:

  • none.

get_value

returns value of a field.

$dataItem->get_value($name);

Parameters:

  • $name - name or alias of the field.

See Also:

set_cell_attribute

sets attribute for a cell of item.

$dataItem->set_cell_attribute($name,$attr,$value)

Parameters:

  • $name - name of alias of the cell
  • $attr - name of attribute
  • $value - value of attribute

See Also:

set_cell_class

sets css class for a cell of item.

$dataItem->set_cell_class($name,$value);

Parameters:

  • $name - name or alias of the cell
  • $value - css class for the cell

See Also:

set_cell_style

sets style for a cell of item.

$dataItem->set_cell_style($style);

Parameters:

  • $style - HTML style attributes.

See Also:

set_id

sets id of the item.

$dataItem->set_id($value);

Parameters:

  • $value - id of the item.

See also:

ignores the current item while rendering output. Allows to define custom filtration rules.

$dataItem->skip()

Parameters:

  • none

set_row_attribute

sets attribute for any row in the component.

$dataItem->set_row_attribute($attr,$value);

Parameters:

  • $attr - name of attribute
  • $value - value of attribute

See Also:

set_row_color

sets color for any row in the component.

$dataItem->set_row_color($color)

Parameters:

  • $color - color of a row

See Also:

set_row_style

sets style for any row of the component.

$dataItem->set_row_style($style);

Parameters:

  • $style - HTML style attributes

See Also:

set_value

sets value of a field.

$dataItem->set_value($name,$value)

Parameters:

  • $name - name or alias of the field
  • $value - value of the field in question

See Also: