25.1.40 • Published 4 days ago

@syncfusion/ej2-angular-grids v25.1.40

Weekly downloads
6,747
License
SEE LICENSE IN li...
Repository
github
Last release
4 days ago

Angular Data Grid Component

The Angular Data Grid component is a powerful and flexible tool for displaying and manipulating tabular data. Angular Data Grid component is its ability to bind to a wide range of data sources, including arrays of JSON objects, OData web services, and the Syncfusion DataManager. This makes it easy to integrate the grid into your application and display data from a variety of sources. In addition to its data binding capabilities, the Angular Data Grid also offers support for features such as sorting, filtering, paging, grouping, editing, frozen rows and columns, virtualization, and more. These features allow you to easily manipulate and present large datasets in an efficient and user-friendly way.

Angular Grid Component

Setup

Create an Angular Application

You can use Angular CLI to setup your Angular applications. To install the Angular CLI, use the following command.

npm install -g @angular/cli

Create a new Angular application using the following Angular CLI command.

ng new my-app
cd my-app

Adding Syncfusion Grid package

All Syncfusion Angular packages are available in npmjs.com. To install the Angular grid package, use the following command.

ng add @syncfusion/ej2-angular-grids

The above command does the below configuration to your Angular app.

  • Adds @syncfusion/ej2-angular-grids package and its peer dependencies to your package.json file.
  • Imports the GridModule in your application module app.module.ts.
  • Registers the Syncfusion UI default theme (material) in the angular.json file.

This makes it easy to add the Syncfusion Angular Grids module to your project and start using it in your application.

Add Grid component

In src/app/app.component.ts, use <ejs-grid> selector in the template attribute of the @Component directive to render the Syncfusion Angular Grid component.

import { Component, OnInit } from '@angular/core';

@Component({
    selector: 'app-root',
    template: `<ejs-grid [dataSource]='data'>
                <e-columns>
                    <e-column field='OrderID' headerText='Order ID'></e-column>
                    <e-column field='CustomerID' headerText='Customer ID'></e-column>
                    <e-column field='ShipCountry' headerText='Ship Country'></e-column>
                </e-columns>
                </ejs-grid>`
})
export class AppComponent implements OnInit {

    public data: object[] = [];

    ngOnInit(): void {
        this.data = [
		{'OrderID': 10248,'CustomerID': 'VINET', 'ShipCountry': 'France'},
		{'OrderID': 10249,'CustomerID': 'TOMSP', 'ShipCountry': 'Germany'},
		{'OrderID': 10250,'CustomerID': 'HANAR', 'ShipCountry': 'Brazil' },
		{'OrderID': 10251,'CustomerID': 'VICTE', 'ShipCountry': 'France'}
		];
    }
}

Supported frameworks

Grid component is also offered in the following list of frameworks.

     JavaScript           React             Vue           ASP.NET Core    ASP.NET MVC  

Showcase samples

Key features

  • Data sources: Bind data seamlessly with various local and remote data sources such as JSON, OData, WCF, and RESTful web services with the help of DataManager.
  • Async pipe: Bind the Grid component with RxJS.Observable using the async pipe.
  • High performance: Well thought out efforts, and focuses mainly on fast paced performance to load millions of records. Grid renders only the rows within the viewport, and loads additional data as the user scrolls vertically.
  • Adaptive UI layout: UI is customized and redesigned for great views and usability on small screens. Filter, sort, search, and edit dialogs adaptive to the screen size and render row elements in a vertical direction.
  • Sorting and grouping: Supporting N level of sorting and grouping can be useful for more complex data sets that have a deeper hierarchical structure or that need to be organized and analyzed in more detailed ways.
  • Aggregation: Easily visualize the aggregates for column values by calculating and displaying summary statistics such as sums, averages, counts, etc. By default, the aggregate value can be displayed in the footer, group footer, or group caption of the grid.
  • Filtering: The filter UIs, including the filter bar, menu, excel, and checkbox, are available at each column to filter data.
  • Paging: Paging is used to view a segment of data from the assigned data source. It requests data on-demand when navigating to another page also allows to change the page size on the fly by using the page size dropdown in the pager.
  • Editing: Grid supports create, read, update, and delete operations (CRUD). Also provides various edit modes such as inline, dialog, and batch edit (cell editing).
  • Selection: Select rows or cells either by using checkbox or by simply clicking them. Select more than one row or cell by holding Ctrl or Shift or Command, or simply dragging the pointer over the cells, or programmatically.
  • Hierarchical binding: Allows you to display table data in a hierarchical structure, allowing you to visualize the relationships between parent and child records in a clear and organized way.
  • Templates: Using templates, users can create custom UI. It provides various template options to create custom headers, custom cell contents, custom rows, detail rows, toolbars, and custom editors for edit action.
  • Row drag and drop: The Grid rows can be reordered while drag and drop the rows within the grid. Also allows to drop the dragged rows another Grid or custom component.
  • Columns: Column definitions are used as the dataSource schema in the Grid. This plays a vital role in rendering column values in the required format.
    • Reordering: Allows you to rearrange the columns in the grid by dragging and dropping them to a new position in the column header row.
    • Column chooser: It provides a list of column names paired with check boxes that allow the visibility to be toggled on the fly.
    • Resizing: Resizing allows changing column width on the fly by simply dragging the right corner of the column header.
    • Frozen rows and columns: Provides the ability to freeze columns and rows to allow for easy scrolling and comparison of cell values. It also offers the option to freeze columns on either the left or right side, or on both sides, of the grid.
    • Cell spanning: Grid cells can be spanned across multiple columns or rows in a grid layout to create a larger cell that takes up more space in the grid.
    • Foreign key column binding: A column can display values from external or lookup data sources using foreign key/value mapping.
  • Context menu: The context menu provides a list of actions to be performed in the grid. It appears when a grid cell, header, or the pager is right-clicked.
  • Clipboard: Selected rows and cells can be copied from the grid without header using Ctrl + C or with header using Ctrl + Shift + H shortcut. This allows you to easily transfer data from the grid to other applications or documents as needed.
  • Export to Excel and PDF: Provides the option to export grid data to Excel, PDF, and CSV formats.
  • RTL support: Provides the right-to-left mode which aligns content in the Grid component from right to left.
  • Accessibility: Designed to be accessible to users with disabilities, with features such as WAI-ARIA standard compliance and keyboard navigation to ensure that the grid can be effectively used with assistive technologies such as screen readers.
  • Localization: The Localization library enables you to adapt the default text content of the grid to fit the language and cultural preferences of your target audience.

Support

Product support is available through the following mediums.

Changelog

Check the changelog here. Get minor improvements and bug fixes every week to stay up to date with frequent updates.

License and copyright

This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. To acquire a license for 80+ Angular UI components, you can purchase or start a free 30-day trial.

A free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.

See LICENSE FILE for more info.

© Copyright 2024 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.

25.1.40-ngcc

4 days ago

25.1.40

4 days ago

25.1.39-ngcc

11 days ago

25.1.39

11 days ago

25.1.38-ngcc

18 days ago

25.1.38

18 days ago

25.1.37-ngcc

25 days ago

25.1.37

25 days ago

25.1.35-ngcc

1 month ago

25.1.35

1 month ago

24.2.9

2 months ago

24.2.9-ngcc

2 months ago

24.2.8

2 months ago

24.2.8-ngcc

2 months ago

24.2.7

2 months ago

24.2.7-ngcc

2 months ago

20.4.54-54741

2 months ago

24.2.5

2 months ago

24.2.5-ngcc

2 months ago

24.2.4-ngcc

2 months ago

24.2.4

2 months ago

24.2.3

3 months ago

24.2.3-ngcc

3 months ago

24.1.47

3 months ago

24.1.47-ngcc

3 months ago

24.1.46

3 months ago

24.1.46-ngcc

3 months ago

24.1.45-ngcc

3 months ago

24.1.45

3 months ago

24.1.44

4 months ago

24.1.44-ngcc

4 months ago

24.1.43

4 months ago

24.1.43-ngcc

4 months ago

21.1.38-10459

4 months ago

24.1.41

4 months ago

24.1.41-ngcc

4 months ago

23.2.7-52849

4 months ago

19.3.54-13828

5 months ago

23.2.6-ngcc

5 months ago

23.2.7-ngcc

5 months ago

23.2.6

5 months ago

23.2.7

5 months ago

23.1.44-ngcc

6 months ago

22.2.7-ngcc

9 months ago

22.2.10-ngcc

8 months ago

22.2.11-ngcc

8 months ago

22.2.8-ngcc

9 months ago

22.1.38-ngcc

9 months ago

23.1.36-ngcc

7 months ago

23.1.43-ngcc

6 months ago

23.1.38-ngcc

7 months ago

20.3.47-54738

8 months ago

20.3.47-54739

8 months ago

23.1.41-ngcc

6 months ago

22.2.9

8 months ago

22.2.8

9 months ago

22.2.7

9 months ago

22.2.5

9 months ago

22.1.38

9 months ago

22.1.39

9 months ago

22.1.37

10 months ago

22.2.11

8 months ago

22.2.12

8 months ago

22.2.10

8 months ago

22.2.9-ngcc

8 months ago

23.2.4

5 months ago

23.1.40

6 months ago

23.1.41

6 months ago

23.1.44

6 months ago

23.1.42

6 months ago

23.1.43

6 months ago

22.2.12-ngcc

8 months ago

23.1.39-ngcc

7 months ago

22.2.5-ngcc

9 months ago

23.1.42-ngcc

6 months ago

23.1.38

7 months ago

23.1.36

7 months ago

23.1.39

7 months ago

23.2.4-ngcc

5 months ago

20.4.54-54739

6 months ago

23.1.40-ngcc

6 months ago

20.4.54-54738

7 months ago

22.1.37-ngcc

10 months ago

22.1.39-ngcc

9 months ago

20.4.54-54740

5 months ago

22.1.36-ngcc

10 months ago

22.1.36

10 months ago

21.1.36-ngcc

10 months ago

21.1.36

10 months ago

21.1.42

10 months ago

22.1.35

10 months ago

22.1.34-ngcc

10 months ago

21.2.9

11 months ago

22.1.34

10 months ago

21.2.9-ngcc

11 months ago

21.2.10

10 months ago

21.2.10-ngcc

10 months ago

21.2.8

11 months ago

21.2.4

12 months ago

21.2.3

12 months ago

21.2.6

11 months ago

21.2.5

11 months ago

21.2.3-ngcc

12 months ago

21.2.5-ngcc

11 months ago

21.2.8-ngcc

11 months ago

21.2.6-ngcc

11 months ago

21.2.4-ngcc

12 months ago

20.4.54

1 year ago

20.4.53

1 year ago

21.1.38-ngcc

1 year ago

21.1.41-ngcc

1 year ago

20.4.54-ngcc

1 year ago

20.4.53-ngcc

1 year ago

21.1.35

1 year ago

21.1.39

1 year ago

21.1.38

1 year ago

21.1.37

1 year ago

21.1.41

1 year ago

21.1.35-ngcc

1 year ago

21.1.37-ngcc

1 year ago

21.1.39-ngcc

1 year ago

20.4.52

1 year ago

20.4.52-ngcc

1 year ago

20.4.51

1 year ago

20.4.50

1 year ago

20.4.50-ngcc

1 year ago

20.4.51-ngcc

1 year ago

20.4.49

1 year ago

20.4.48

1 year ago

20.4.49-ngcc

1 year ago

20.4.48-ngcc

1 year ago

20.4.38-ngcc

1 year ago

20.4.42-ngcc

1 year ago

20.4.44

1 year ago

20.4.43

1 year ago

20.4.42

1 year ago

20.4.40

1 year ago

20.4.39

1 year ago

20.4.38

1 year ago

20.3.62

1 year ago

20.3.61

1 year ago

20.3.60

1 year ago

20.4.43-ngcc

1 year ago

20.4.40-ngcc

1 year ago

20.3.61-ngcc

1 year ago

20.4.44-ngcc

1 year ago

20.3.62-ngcc

1 year ago

20.3.60-ngcc

1 year ago

20.3.48-ngcc

2 years ago

20.3.57-ngcc

1 year ago

20.3.58-ngcc

1 year ago

20.3.59-ngcc

1 year ago

20.3.50-ngcc

2 years ago

20.3.59

1 year ago

20.3.58

1 year ago

20.3.57

1 year ago

20.3.56

1 year ago

20.3.52

1 year ago

20.3.50

2 years ago

20.3.49

2 years ago

20.3.48

2 years ago

20.3.56-ngcc

1 year ago

20.3.49-ngcc

2 years ago

20.3.52-ngcc

1 year ago

20.2.49-ngcc

2 years ago

20.2.48-ngcc

2 years ago

20.2.46-ngcc

2 years ago

20.3.47-ngcc

2 years ago

20.3.47

2 years ago

20.2.46

2 years ago

20.2.48

2 years ago

20.2.49

2 years ago

20.2.45-ngcc

2 years ago

20.2.45

2 years ago

20.2.43-ngcc

2 years ago

20.2.44-ngcc

2 years ago

20.2.39-ngcc

2 years ago

20.2.40-ngcc

2 years ago

20.2.36-ngcc

2 years ago

20.2.37-ngcc

2 years ago

20.2.38-ngcc

2 years ago

20.1.60

2 years ago

20.1.61

2 years ago

20.2.36

2 years ago

20.2.38

2 years ago

20.2.39

2 years ago

20.2.40

2 years ago

20.2.43

2 years ago

20.2.44

2 years ago

20.1.52

2 years ago

20.1.55

2 years ago

20.1.56

2 years ago

20.1.57

2 years ago

20.1.58

2 years ago

20.1.59

2 years ago

18.3.50-85492

2 years ago

20.1.47

2 years ago

20.1.48

2 years ago

20.1.51

2 years ago

19.4.56

2 years ago

19.4.54

2 years ago

19.4.55

2 years ago

19.4.41

2 years ago

19.4.43

2 years ago

19.4.42

2 years ago

19.4.47

2 years ago

19.4.48

2 years ago

19.4.50

2 years ago

19.4.52

2 years ago

19.4.51

2 years ago

19.4.53

2 years ago

19.3.53

2 years ago

19.3.56

2 years ago

19.3.57

2 years ago

19.3.54

2 years ago

19.3.55

2 years ago

19.4.38

2 years ago

19.4.40

2 years ago

19.3.48

2 years ago

19.3.47

2 years ago

19.3.45

3 years ago

19.3.46

3 years ago

19.3.44

3 years ago

19.3.43

3 years ago

19.2.62

3 years ago

19.2.60

3 years ago

19.2.59

3 years ago

19.2.57

3 years ago

19.2.56

3 years ago

19.2.55

3 years ago

19.2.51

3 years ago

19.2.49

3 years ago

19.2.48

3 years ago

19.2.47

3 years ago

19.2.46

3 years ago

19.2.44

3 years ago

19.1.69

3 years ago

19.1.67

3 years ago

19.1.66

3 years ago

19.1.65

3 years ago

19.1.64

3 years ago

19.1.63

3 years ago

19.1.59

3 years ago

19.1.58

3 years ago

19.1.57

3 years ago

19.1.56

3 years ago

19.1.55

3 years ago

19.1.54

3 years ago

18.4.49

3 years ago

18.4.48

3 years ago

18.4.47

3 years ago

18.4.46

3 years ago

18.4.44

3 years ago

18.4.43

3 years ago

18.4.42

3 years ago

18.4.41

3 years ago

18.4.39

3 years ago

18.4.35

3 years ago

18.4.34

3 years ago

18.4.33

3 years ago

18.4.32

3 years ago

18.4.31

3 years ago

18.4.30

3 years ago

18.3.53

3 years ago

18.3.52

3 years ago

18.3.51

3 years ago

18.3.50

3 years ago

18.3.48

3 years ago

18.3.47

3 years ago

18.3.44

3 years ago

18.3.42

4 years ago

18.3.40

4 years ago

18.3.35

4 years ago

18.2.59

4 years ago

18.2.58

4 years ago

18.2.57

4 years ago

18.2.56

4 years ago

18.2.55

4 years ago

18.2.54

4 years ago

18.2.48

4 years ago

18.2.47

4 years ago

18.2.46

4 years ago

18.2.45

4 years ago

18.2.44

4 years ago

18.1.59

4 years ago

18.1.57

4 years ago

18.1.56

4 years ago

18.1.55

4 years ago

18.1.54

4 years ago

18.1.53

4 years ago

18.1.52

4 years ago

18.1.48

4 years ago

18.1.46

4 years ago

18.1.45

4 years ago

18.1.44

4 years ago

18.1.43

4 years ago

18.1.42

4 years ago

18.1.36-beta

4 years ago

17.4.55

4 years ago

17.4.51

4 years ago

17.4.50

4 years ago

17.4.49

4 years ago

17.4.47

4 years ago

17.4.46

4 years ago

17.4.44

4 years ago

17.4.43

4 years ago

17.4.41

4 years ago

17.4.40

4 years ago

17.4.39

4 years ago

17.3.34

4 years ago

17.3.30

4 years ago

17.3.29

4 years ago

17.3.28

4 years ago

17.3.27

4 years ago

17.3.26

4 years ago

17.3.21

4 years ago

17.3.20

4 years ago

17.3.19

4 years ago

17.3.17

5 years ago

17.3.16

5 years ago

17.3.14

5 years ago

17.3.9-beta

5 years ago

17.2.51

5 years ago

17.2.49

5 years ago

17.2.48-beta

5 years ago

17.2.29-beta

5 years ago

17.2.47

5 years ago

17.2.46

5 years ago

17.2.41

5 years ago

17.2.40

5 years ago

17.2.39

5 years ago

17.2.36

5 years ago

17.2.35

5 years ago

17.2.34

5 years ago

17.2.28-beta

5 years ago

17.1.51

5 years ago

17.1.50

5 years ago

17.1.48

5 years ago

17.1.47

5 years ago

17.1.44

5 years ago

17.1.43

5 years ago

17.1.42

5 years ago

17.1.41

5 years ago

17.1.40

5 years ago

17.1.39

5 years ago

17.1.38

5 years ago

17.1.32-beta

5 years ago

16.4.55

5 years ago

16.4.54

5 years ago

16.4.53

5 years ago

16.4.52

5 years ago

17.1.1-beta

5 years ago

16.4.48

5 years ago

16.4.47

5 years ago

16.4.46

5 years ago

16.4.45

5 years ago

16.4.44

5 years ago

16.4.42

5 years ago

16.4.40-beta

5 years ago

16.3.34

5 years ago

16.3.33

5 years ago

16.3.32

5 years ago

16.3.31

5 years ago

16.3.30

5 years ago

16.3.29

5 years ago

16.3.27

5 years ago

16.3.25

6 years ago

16.3.24

6 years ago

16.3.23

6 years ago

16.3.22

6 years ago

16.3.21

6 years ago

16.3.18

6 years ago

16.3.17

6 years ago