Features
This page contains structured information that will help you to start working with DHTMLX Grid and go into deep dive on its functionality.
How to start with DHTMLX Grid
In this section you can find out how to initialize Grid, how to load data into the component and how to integrate Grid into your applications.
Initialization
Topic | Description |
---|---|
Basic initialization | Learn how to initialize Grid |
Pagination with Grid | The example shows how to initialize Grid inside Pagination |
Large dataset | The example shows how Grid works with over 11000 rows loaded |
Several grids with large dataset | The example shows how to initialize several grids inside one container |
Loading data into Grid
Topic | Description |
---|---|
Loading data into Grid | Read how to load the initial data into Grid |
Initialization with config.data | The example shows how to load data into Grid on the initialization stage |
Initialization with data.load() | The example shows how to load data from external file |
Initialization with data.parse() | The example shows how to load data from a local data source |
Initialization with external DataCollection | The example shows how to load data from external DataCollection |
Lazy loading | The example shows how to render data dynamically |
Integration
Topic | Description |
---|---|
Backend integration | Learn how to connect DHTMLX Suite to a backend (Demo) |
Optimus | Learn how to use DHTMLX Optimus framework for creating DHTMLX-based app (recommended framework for creating apps with Suite components) |
React integration | Learn how to use DHTMLX Grid with React (Demo) |
Angular integration | Learn how to use DHTMLX Grid with Angular (Demo) |
Vue integration | Learn how to use DHTMLX Grid with Vue.js (Demo) |
How to configure Grid
How to configure columns
In this section you will know how to configure Grid columns on Grid initialization.
Topic | Description |
---|---|
Configuring columns | Learn how to define initial structure of Grid |
Configuring content alignment | Learn how to align data in a column (Example) |
Frozen columns | Learn how to split grid columns into the frozen and movable parts (Example) |
Hidden columns | Learn how to initialize Grid with hidden columns (Example) |
Sortable columns | Learn how to make columns sortable (Example) |
Resizable columns | Learn how to make columns resizable (Example) |
How to configure rows
In this section you will know how to configure Grid rows on Grid initialization.
Topic | Description |
---|---|
Automatic adding of empty row into Grid | Learn how to to automatically add an empty row after the last filled row in the grid (Example) |
Frozen rows | Learn how to split grid rows into the frozen and movable parts (Example) |
How to specify formats for Grid data
In this section you will learn how to specify the necessary data formats for a separate column.
Topic | Description |
---|---|
Configuring data formats | Learn how to display values of cells in different formats (percent, currency, date and combination with templates) (Example) |
Date column and support of the Date() object | The example shows how to use the Date() object for specifying dates |
How to configure Grid header and footer
In this section you can learn how to configure the header and footer of Grid, how to configure their heights and styles.
Topic | Description |
---|---|
Configuring header/footer | Learn how to configure a Grid header/footer (Example) |
Setting the height for header and footer | Learn how to set the height for rows in the header and footer of Grid (Example) |
Styling header cells | Learn how to set styling to the text of header cells (Example) |
Styling footer cells | Learn how to set styling to the text of footer cells (Example) |
How to configure tooltips
In this section you will know how to add tooltips of the desired appearance with the necessary information, or hide them if needed.
Topic | Description |
---|---|
Hiding tooltips | Learn how to hide/show a tooltip on hovering over the content of a column (Example) |
Adding templates for tooltips | Learn how to customize the content of the tooltip of a column (Example 1, Example 2) |
How to group cells in Grid
In this section you will find out how to group cells in Grid and its header.
Topic | Description |
---|---|
Grouping cells | Learn how to specify columns and rows spans in Grid (Example) |
Adding/removing spans | Learn how to add, remove and get spans of rows and columns via API methods |
Grouping rows and columns in the header | Learn how to specify spans for columns and rows in the Grid header (Example) |
How to configure drag-n-drop
In this section you will know how to configure the drag-n-drop functionality for Grid.
Topic | Description |
---|---|
Drag-n-drop inside a grid | Learn how to configure drag-n-drop of columns and (or) rows inside the grid |
Drag-n-drop between grids | Learn how to configure drag-n-drop between grids (Example) |
Drag-n-drop of multiple rows | Learn how to allow end users to drag-n-drop several rows at once |
Copying of rows during drag-n-drop | Learn how to copy a row to a target during drag-n-drop (Example) |
How to configure sizes of Grid and its cells
In this section you can learn how to configure the size of Grid and its cells.
Topic | Description |
---|---|
Width and height of Grid | Learn how to set specific size of Grid (Example) |
Auto-height for Grid | Learn how to configure auto-height for Grid (Example) |
Adjusting columns by header, footer, data content | Learn how to make the size of columns to automatically adjust to their content (Example) |
Max width of a column | Learn how to define the maximal width which can be set for a column (Example) |
Min width of a column | Learn how to define the minimum width which can be set for a column (Example) |
Auto-width for columns | Learn how to configure auto-width for columns (Example) |
Auto-height for rows | Learn how to configure auto-height for rows (Example) |
Row height | Learn how to configure the height of rows (Example) |
How to customize Grid and its cells
In this section you can learn how to configure the style of Grid and its cells.
Topic | Description |
---|---|
Row context menu with custom logic | The example shows how to add a context menu with custom logic for the grid rows |
Adding HTML content into cells | Learn how to add HTML content (for example, an image, an icon) into data of Grid cells (Example) |
Adding a template to cells | Learn how to customize the content of cells (Example) |
Handling events in template | Learn how to assign event handlers to HTML elements of a custom template of Grid cells (Example) |
Styling Grid | Learn how to customize a grid (Example) |
Styling cells | Learn how to style the necessary cells (Example) |
Marking cells with colors | Learn how to apply conditional formatting and mark cells in the grid (Example 1, Example 2) |
Styling rows | Learn how to style the necessary rows (Example 1, Example 2) |
Styling selection | The example shows how to style the selection in the grid |
List of CSS classes | A set of CSS classes provided by the DHTMLX library |
How to work with columns and rows
In this section you will know how to add and remove columns and rows, how to hide and show them, how to configure their sizes and align content inside the columns.
Adding/removing columns and rows
Topic | Description |
---|---|
Adding / removing columns | Learn how to add/remove columns |
Adding / removing rows | Learn how to add/remove rows (Example) |
Getting configuration of a cell/column
Topic | Description |
---|---|
Getting configuration of a column | Learn how to get an object with configuration of the specified column |
Getting configuration of a cell | Learn how to get the current coordinates and size of a cell |
Showing/hiding columns and rows
Topic | Description |
---|---|
Showing / hiding a row | Learn how to show and hide a row in Grid (Example) |
Checking visibility of a row | Learn how to check whether a row is hidden |
Hiding columns | Learn how to make a column hidden on Grid initialization (Example) |
Showing / hiding a column | Learn how to show and hide a column in Grid (Example) |
Checking visibility of a column | Learn how to check whether a column is hidden (Example) |
How to work with data in Grid
This section will tell you how to use Grid API and DataCollection API for working with data of Grid, i.e. edit, add, remove, sort data, etc.
How to edit data
In this section you will find the ways of editing data in Grid.
Topic | Description |
---|---|
Enabling/disabling editing | Read how to enable/disable editing of the whole Grid or its separate columns |
Editing with different editors | Learn how to specify the type of the editor for editing the cells (Example), (Example 2), (Example 3) |
Editing with a colorpicker editor | The example shows how to implement a colorpicker editor for editing cells |
Inline editing | The example allows you to try out inline editing in Grid |
Editing data using the right panel | The example shows how to implement editing in Grid via the right panel |
Editing data using a modal window | The example shows how to implement editing in Grid via the modal window |
Editing of a specific cell | Learn how to enable editing of a cell (Example) |
Grid and Chart. Edit Grid to see the changes in Chart | Check the example to see how the chart changes after you edit data in the grid |
Keyboard navigation | Learn how to enable key navigation for editing the cells (Example) |
How to sort data
In this section you will find the ways of sorting data in Grid.
Topic | Description |
---|---|
Sorting data | Learn how to sort data in the grid (Example) |
Sortable columns | Learn how to define whether a column should be sortable (Example) |
Getting sorting state | Learn how to get the current state of sorting data in Grid (Example) |
How to filter data
In this section you will find the ways of filtering data in Grid.
Topic | Description |
---|---|
Setting the type of a filter in the header/footer | Learn how to specify the type of the filter in the header/footer of a Grid column (Example) |
Filtering data | Learn how to filter grid data by the specified criteria (Example 1, Example 2) |
Customizing filters in the header/footer | Learn how to add a custom function with your own logic for filtering data in a Grid column (Example) |
Getting the header filter | Learn how to get and use an object of the header filter (Example) |
How to work with selection
In this section you will find the ways of work with selection functionality.
Topic | Description |
---|---|
Configuring selection | Learn how to configure the mode of selection of Grid elements (Example) |
Enabling multiselection | Learn how to enable multi-row/multi-cell selection in Grid (Example) |
Working with selection | Learn how to enable/disable selection, set selection to cells, remove selection, and get the object of a selected cell (Example) |
Selection API | Learn how to use the API of Selection to manage the selection of Grid cells |
Keyboard navigation | Learn how to enable key navigation that allows moving the selection between cells (Example) |
How to scroll Grid
In this section you will learn how to scroll Grid to the necessary position.
Topic | Description |
---|---|
Controlling scroll behavior | Learn how to scroll the grid content to exact position (Example) |
Keyboard navigation | Learn how to enable key navigation in Grid (Example) |
How to export Grid
In this section you will know how to export Grid to different formats.
Topic | Description |
---|---|
Exporting Grid to XLSX, CSV, PNG. or PDF format | Learn how to export Grid to the necessary format (Example 1, Example 2) |