We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Get selected item attributes - grid

Thread ID:





150200 Dec 26,2019 02:03 AM UTC Dec 30,2019 09:12 AM UTC Angular - EJ 2 1
Tags: Grid
jose lara
Asked On December 26, 2019 02:03 AM UTC

Hi, I am following this example - https://ej2.syncfusion.com/angular/demos/?_ga=2.133986510.1538252749.1576809616-867896921.1564449587#/material/grid/checkbox-selection

When a user checks a few records, how can I add the selected record attributes such as "orderId" to a list?

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On December 30, 2019 09:12 AM UTC

Hi Jose,  
Greetings from Syncfusion.  
Using the getSelectedRecords method, you can retrieve the selected records and therefore, OrderID values will be retrieved. Refer to the following code example.  
    @ViewChild('grid', {static: true}) 
    public grid: GridComponent; 
    public onClick(): void { 
Seeni Sakthi Kumar S 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon