JavaScript Data Grid Examples used on the blog.
https://blog.ag-grid.com/tag/javascript/
This video series covers AG Grid's Data Grid using Javascript. Using a step by step series of videos you will quickly learn AG Grid features and how to customize them for your project.
Videos in this Series
- 01 - Community Getting Started
- 02 - Enterprise Getting Started
- 03 - Javascript Cell Renderers
- 04 - Javascript Column Filters
- Enterprise Row Grouping
All videos are available in a playlist:
https://www.youtube.com/playlist?list=PLsZlhayVgqNxijfRQxg5Mc6W4MzZHQ9MK
Source code is available on Github:
AG Grid is a fully-featured and highly customizable JavaScript data grid. It delivers outstanding performance, has no 3rd party dependencies and integrates smoothly with all major JavaScript frameworks. Here's how our grid looks like with multiple filters and grouping enabled:
The community edition of AG Grid is absolutely free, even for commercial use.
Besides the standard set of features you'd expect from any grid:
- Column Interactions (resize, reorder, and pin columns)
- Pagination
- Sorting
- Row Selection
Here are some of the features that make ag-Grid stand out:
- Grouping / Aggregation*
- Custom Filtering
- In-place Cell Editing
- Records Lazy Loading *
- Server-Side Records Operations *
- Live Stream Updates
- Hierarchical Data Support & Tree View *
- Customizable Appearance
- Customizable Cell Contents
- Excel-like Pivoting *
- State Persistence
- Keyboard navigation
- Data Export to CSV
- Data Export to Excel *
- Row Reordering
- Copy / Paste
- Column Spanning
- Pinned Rows
- Full Width Rows
* The features marked with an asterisk are available in the enterprise version only.
Check out developers documentation for a complete list of features or visit our official docs for tutorials and feature demos.
AG Grid is available for React, Angular, Vue and Javascript.
<div id="myGrid" style="height: 500px; width:500px;" class="ag-theme-balham"></div>
<head>
<script src="https://unpkg.com/ag-grid/dist/ag-grid.min.noStyle.js"></script>
<link rel="stylesheet" href="https://unpkg.com/ag-grid/dist/styles/ag-grid.css">
<link rel="stylesheet" href="https://unpkg.com/ag-grid/dist/styles/ag-theme-balham.css">
</head>
const columnDefs = [
{headerName: 'Make', field: 'make'},
{headerName: 'Model', field: 'model'},
{
headerName: 'Price',
field: 'price',
editable: true,
cellRenderer: 'numberCellFormatter',
cellEditor: 'numericCellEditor',
filter: 'rangeFilter',
}
];
const gridOptions = {
columnDefs: columnDefs,
enableSorting: true,
enableFilter: true,
components: {
numberCellFormatter: NumberCellFormatter,
numericCellEditor: NumericCellEditor,
rangeFilter: RangeFilter
}
};
const eGridDiv = document.querySelector('#myGrid');
new agGrid.Grid(eGridDiv, gridOptions);
For more information on how to integrate the grid into your project see TypeScript - Building with Webpack 2.
This project is licensed under the MIT license. See the LICENSE file for more info.