27.1.57 • Published 2 months ago

@syncfusion/ej2-vue-grids v27.1.57

Weekly downloads
2,280
License
SEE LICENSE IN li...
Repository
github
Last release
2 months ago

Vue Grid Component

The Vue Grid component is a powerful and flexible tool for displaying and manipulating tabular data. Vue 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 Vue 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.

Vue Grid Component

Setup

Create an Vue Application

You can use Vue CLI to setup your Vue 2 applications.To install Vue CLI use the following commands.

npm install -g @vue/cli
vue create quickstart
cd quickstart
npm run serve

Initiating a new project prompts us to choose the type of project to be used for the current application. Select the option Default ([Vue 2] babel, eslint) from the menu.

Adding Syncfusion Grid package

All Syncfusion Vue packages are published in npmjs.com registry. To install Vue grid package, use the following command.

npm install @syncfusion/ej2-vue-grids --save

Registering Grid component

You can register the Grid component in your application by using the Vue.use(). Refer to the code example given below.

import { GridPlugin } from '@syncfusion/ej2-vue-grids';

Vue.use(GridPlugin);

Registering GridPlugin in vue, will register the grid component along with its required child directives globally.

Adding CSS references for Grid

Add CSS references needed for Grid in style section of the App.vue file from ../node_modules/@syncfusion package folder.

<style>
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';  
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';  
@import '../node_modules/@syncfusion/ej2-calendars/styles/material.css';  
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';  
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';  
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
@import '../node_modules/@syncfusion/ej2-notifications/styles/material.css';
@import "../node_modules/@syncfusion/ej2-vue-grids/styles/material.css";
</style>

Add Grid component

Add the Vue Grid by using ejs-grid selector in template section of the App.vue file.

<template>
    <div id="app">
        <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>
    </div>
</template>
<script>
import Vue from "vue";
import { GridPlugin } from "@syncfusion/ej2-vue-grids";

Vue.use(GridPlugin);

export default {
  data() {
    return {
      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'}
      ],
    };
  },
}
</script>
<style>
 @import '../node_modules/@syncfusion/ej2-base/styles/material.css';  
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';  
@import '../node_modules/@syncfusion/ej2-calendars/styles/material.css';  
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';  
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';  
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
@import '../node_modules/@syncfusion/ej2-notifications/styles/material.css';
@import "../node_modules/@syncfusion/ej2-vue-grids/styles/material.css";
</style>

Refer the Getting Started with Vue3 for using Syncfusion Vue components in Vue 3 applications.

Supported frameworks

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

     JavaScript           Angular             React           ASP.NET Core    ASP.NET MVC  

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.
  • 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: The 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 options to Export the grid data to Excel, PDF, and CSV formats.
  • RTL support: Provides a full-fledged 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+ Vue 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.

27.1.57

2 months ago

27.1.55

2 months ago

27.1.53

2 months ago

27.1.51

3 months ago

27.1.52

3 months ago

26.1.40

6 months ago

26.2.12

4 months ago

26.2.11

4 months ago

26.2.10

4 months ago

26.1.42

5 months ago

26.1.41

6 months ago

26.2.14

3 months ago

25.2.6

7 months ago

26.1.35

7 months ago

26.1.39

6 months ago

26.1.38

6 months ago

25.2.7

7 months ago

27.1.50

3 months ago

26.2.9

4 months ago

26.2.8

5 months ago

26.2.7

5 months ago

26.2.5

5 months ago

26.2.4

5 months ago

27.1.48

3 months ago

25.2.5

7 months ago

25.2.3

8 months ago

25.1.42

8 months ago

25.1.41

8 months ago

25.1.40

8 months ago

25.1.39

9 months ago

25.1.38

9 months ago

25.1.37

9 months ago

25.1.35

9 months ago

24.2.9

10 months ago

24.2.8

10 months ago

24.2.7

10 months ago

24.2.5

10 months ago

24.2.4

11 months ago

24.2.3

11 months ago

24.1.47

11 months ago

24.1.46

11 months ago

24.1.45

12 months ago

24.1.44

12 months ago

24.1.43

12 months ago

24.1.41

1 year ago

23.2.6

1 year ago

23.2.7

1 year ago

22.2.9

1 year ago

22.2.8

1 year ago

22.2.7

1 year ago

22.2.5

1 year ago

22.1.38

1 year ago

22.1.39

1 year ago

22.1.37

1 year ago

22.2.11

1 year ago

22.2.12

1 year ago

22.2.10

1 year ago

23.2.4

1 year ago

23.1.40

1 year ago

23.1.41

1 year ago

23.1.44

1 year ago

23.1.42

1 year ago

23.1.43

1 year ago

23.1.38

1 year ago

23.1.36

1 year ago

23.1.39

1 year ago

22.1.36

1 year ago

21.1.36

1 year ago

21.1.42

1 year ago

21.2.9

2 years ago

22.1.34

2 years ago

21.2.10

2 years ago

21.2.8

2 years ago

21.2.4

2 years ago

21.2.3

2 years ago

21.2.6

2 years ago

21.2.5

2 years ago

20.4.54

2 years ago

20.4.53

2 years ago

21.1.35

2 years ago

21.1.39

2 years ago

21.1.38

2 years ago

21.1.37

2 years ago

21.1.41

2 years ago

20.4.52

2 years ago

20.4.51

2 years ago

20.4.50

2 years ago

20.4.49

2 years ago

20.4.48

2 years ago

20.4.44

2 years ago

20.4.43

2 years ago

20.4.42

2 years ago

20.4.40

2 years ago

20.4.38

2 years ago

20.3.62

2 years ago

20.3.61

2 years ago

20.3.60

2 years ago

20.3.59

2 years ago

20.3.58

2 years ago

20.3.57

2 years ago

20.3.56

2 years ago

20.3.52

2 years ago

20.3.50

2 years ago

20.3.49

2 years ago

20.3.48

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

2 years ago

20.1.60

3 years ago

20.1.61

3 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

3 years ago

20.1.55

3 years ago

20.1.56

3 years ago

20.1.57

3 years ago

20.1.58

3 years ago

20.1.59

3 years ago

20.1.47

3 years ago

20.1.48

3 years ago

20.1.51

3 years ago

19.4.56

3 years ago

19.4.54

3 years ago

19.4.55

3 years ago

19.4.41

3 years ago

19.4.43

3 years ago

19.4.42

3 years ago

19.4.47

3 years ago

19.4.48

3 years ago

19.4.50

3 years ago

19.4.52

3 years ago

19.4.51

3 years ago

19.4.53

3 years ago

19.3.53

3 years ago

19.3.56

3 years ago

19.3.57

3 years ago

19.3.54

3 years ago

19.3.55

3 years ago

19.4.38

3 years ago

19.4.40

3 years ago

19.3.48

3 years ago

19.3.47

3 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

4 years ago

19.1.67

4 years ago

19.1.66

4 years ago

19.1.65

4 years ago

19.1.64

4 years ago

19.1.63

4 years ago

19.1.59

4 years ago

19.1.58

4 years ago

19.1.57

4 years ago

19.1.56

4 years ago

19.1.55

4 years ago

19.1.54

4 years ago

18.4.49

4 years ago

18.4.48

4 years ago

18.4.47

4 years ago

18.4.46

4 years ago

18.4.44

4 years ago

18.4.43

4 years ago

18.4.42

4 years ago

18.4.41

4 years ago

18.4.39

4 years ago

18.4.35

4 years ago

18.4.34

4 years ago

18.4.33

4 years ago

18.4.32

4 years ago

18.4.31

4 years ago

18.4.30

4 years ago

18.3.53

4 years ago

18.3.52

4 years ago

18.3.51

4 years ago

18.3.50

4 years ago

18.3.48

4 years ago

18.3.47

4 years ago

18.3.44

4 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

5 years ago

18.1.57

5 years ago

18.1.56

5 years ago

18.1.55

5 years ago

18.1.54

5 years ago

18.1.53

5 years ago

18.1.52

5 years ago

18.1.48

5 years ago

18.1.46

5 years ago

18.1.45

5 years ago

18.1.44

5 years ago

18.1.43

5 years ago

18.1.42

5 years ago

18.1.36-beta

5 years ago

17.4.55

5 years ago

17.4.51

5 years ago

17.4.50

5 years ago

17.4.49

5 years ago

17.4.47

5 years ago

17.4.46

5 years ago

17.4.44

5 years ago

17.4.43

5 years ago

17.4.41

5 years ago

17.4.40

5 years ago

17.4.39

5 years ago

17.3.34

5 years ago

17.3.30

5 years ago

17.3.29

5 years ago

17.3.28

5 years ago

17.3.27

5 years ago

17.3.26

5 years ago

17.3.21

5 years ago

17.3.19

5 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

6 years ago

17.1.50

6 years ago

17.1.48

6 years ago

17.1.47

6 years ago

17.1.44

6 years ago

17.1.43

6 years ago

17.1.42

6 years ago

17.1.41

6 years ago

17.1.40

6 years ago

17.1.38

6 years ago

17.1.32-beta

6 years ago

16.4.55

6 years ago

16.4.54

6 years ago

16.4.53

6 years ago

16.4.52

6 years ago

17.1.1-beta

6 years ago

16.4.48

6 years ago

16.4.47

6 years ago

16.4.46

6 years ago

16.4.45

6 years ago

16.4.44

6 years ago

16.4.42

6 years ago

16.4.40-beta

6 years ago

16.3.34

6 years ago

16.3.33

6 years ago

16.3.32

6 years ago

16.3.31

6 years ago

16.3.30

6 years ago

16.3.29

6 years ago

16.3.27

6 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.17

6 years ago

16.2.52

6 years ago

16.2.51

6 years ago

16.2.50

6 years ago

16.2.49

6 years ago

16.2.48

6 years ago

16.2.47

6 years ago

16.2.46

6 years ago

16.2.45

6 years ago

16.2.44

6 years ago

16.2.43

6 years ago

16.2.42

6 years ago

16.2.41

7 years ago