New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@syncfusion/ej2-grids

Package Overview
Dependencies
Maintainers
3
Versions
389
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-grids

Feature-rich JavaScript datagrid (datatable) control with built-in support for editing, filtering, grouping, paging, sorting, and exporting to Excel.

  • 18.3.50-85492
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created

What is @syncfusion/ej2-grids?

@syncfusion/ej2-grids is a comprehensive data grid component for JavaScript applications. It provides a wide range of features for displaying, managing, and interacting with tabular data. The package is part of the Syncfusion Essential JS 2 suite and is designed to be highly customizable and easy to integrate into various frameworks like Angular, React, Vue, and more.

What are @syncfusion/ej2-grids's main functionalities?

Data Binding

This feature allows binding data to the grid from various data sources like JSON, OData, and remote services. The code sample demonstrates how to bind a simple array of JSON objects to the grid and enable paging.

import { Grid, Page } from '@syncfusion/ej2-grids';

let grid = new Grid({
  dataSource: [
    { OrderID: 10248, CustomerID: 'VINET', Freight: 32.38 },
    { OrderID: 10249, CustomerID: 'TOMSP', Freight: 11.61 }
  ],
  allowPaging: true,
  columns: [
    { field: 'OrderID', headerText: 'Order ID', width: 120, textAlign: 'Right' },
    { field: 'CustomerID', headerText: 'Customer ID', width: 150 },
    { field: 'Freight', headerText: 'Freight', width: 120, format: 'C2', textAlign: 'Right' }
  ]
});

grid.appendTo('#Grid');

Sorting

Sorting allows users to order the data in the grid based on column values. The code sample shows how to enable sorting on a grid, allowing users to click on column headers to sort the data.

import { Grid, Sort } from '@syncfusion/ej2-grids';

let grid = new Grid({
  dataSource: [
    { OrderID: 10248, CustomerID: 'VINET', Freight: 32.38 },
    { OrderID: 10249, CustomerID: 'TOMSP', Freight: 11.61 }
  ],
  allowSorting: true,
  columns: [
    { field: 'OrderID', headerText: 'Order ID', width: 120, textAlign: 'Right' },
    { field: 'CustomerID', headerText: 'Customer ID', width: 150 },
    { field: 'Freight', headerText: 'Freight', width: 120, format: 'C2', textAlign: 'Right' }
  ]
});

grid.appendTo('#Grid');

Filtering

Filtering allows users to view a subset of data based on specific criteria. The code sample demonstrates enabling filtering on a grid, allowing users to filter data by entering criteria in the column headers.

import { Grid, Filter } from '@syncfusion/ej2-grids';

let grid = new Grid({
  dataSource: [
    { OrderID: 10248, CustomerID: 'VINET', Freight: 32.38 },
    { OrderID: 10249, CustomerID: 'TOMSP', Freight: 11.61 }
  ],
  allowFiltering: true,
  columns: [
    { field: 'OrderID', headerText: 'Order ID', width: 120, textAlign: 'Right' },
    { field: 'CustomerID', headerText: 'Customer ID', width: 150 },
    { field: 'Freight', headerText: 'Freight', width: 120, format: 'C2', textAlign: 'Right' }
  ]
});

grid.appendTo('#Grid');

Other packages similar to @syncfusion/ej2-grids

Keywords

FAQs

Package last updated on 13 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc