Documentation

Table (main.ui.grid)

Grid (main.ui.grid) is a component for visual representation of data in a table format.


Starting up

To print grid at a page, connect the component main.ui.grid.

$APPLICATION->IncludeComponent(
	'bitrix:main.ui.grid',
	'',
	[
		'GRID_ID' => 'MY_GRID_ID',
		'COLUMNS' => $columns,
		'ROWS' => $rows,
		'AJAX_MODE' => 'Y',
		'AJAX_OPTION_JUMP' => 'N',
		'AJAX_OPTION_HISTORY' => 'N',
	]
);

Component in minimal configuration requires several mandatory parameters:

  • GRID_ID – component identifier;
  • COLUMNS – array with columns;
  • ROWS – array with rows;
  • AJAX_* – parameters for standard AJAX-component.

    It's strictly recommended to use the following AJAX_* parameters:

    'AJAX_MODE' => 'Y',
    'AJAX_OPTION_JUMP' => 'N',
    'AJAX_OPTION_HISTORY' => 'N',
    

Parameters:

© «Bitrix24», 2001-2024
Up