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.
Unfortunately, activation email could not send to your email. Please try again.

How can I get selected rows after grouping and filtering?

Thread ID:

Created:

Updated:

Platform:

Replies:

130357 May 8,2017 02:11 PM May 9,2017 09:36 AM ASP.NET MVC 1
loading
Tags: Grid
CLAUDIO RICCARDI
Asked On May 8, 2017 02:11 PM

If I have a grid with data that are not filtered nor grouped, I can retreive the selected row with the script:

<script>
// Create grid object.
var gridObj = $("#Grid").data("ejGrid");
// Gets the filtered or searched records in Grid
gridObj.getFilteredRecords();  
</script>
Suppose I have a grid that loads data grouped by one column. Then I filter the data and select one filtered record. How can I get the Id of the selected filtered record?

Thanks

Claudio





Prasanna Kumar Viswanathan [Syncfusion]
Replied On May 9, 2017 09:36 AM

Hi Claudio, 


 

Thanks for contacting Syncfusion support.  


 

To get the selected record data, use getSelectedRecords method of ejGrid. The getSelectedRecords method will return the selected record details from the Grid.  


 

So, if you need to get the selected record details after grouping and filtering, use getSelectedRecords method of ejGrid. If you need to get the selected rows, use getSelectedRows method of ejGrid.  


 

Refer the below help documents for getSelectedRecords  and getSelectedRows  


 

https://help.syncfusion.com/api/js/ejgrid#methods:getselectedrecords 


 

https://help.syncfusion.com/api/js/ejgrid#methods:getselectedrows 


 

Regards, 

Prasanna Kumar N.S.V 

CONFIRMATION

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.

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.

;