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

Get grid selection


I haven't been able to find a sampel that demonstates how to get a list of the selected items in the grid.  I have found GetSelectedRows() and similar methods in the API reference but they take no parameters and return void.  I can see there are some options for single row selection but not multiple.

Am I missing something or is this just not implemented yet?


3 Replies

VN Vignesh Natarajan Syncfusion Team July 1, 2019 11:37 AM UTC

Hi Ben,  

Thanks for contacting Syncfusion support.  

Query: “I haven't been able to find a sampel that demonstates how to get a list of the selected items in the grid. 

From your query we understand that you need to get the selected records details in Grid. Currently we do not have support to achieve your requirement. Since it is known request we have implemented your requirement and it will be included in our upcoming nuget release which will be rolled out on or before July 2nd 2019.  Once the nuget release is rolled out successfully, you can achieve your requirement using GetSelectedRecords() method. It will return the values in form of JObjects, where you can serialize them using model class.  

Refer the below code example  

<EjsButton ID="Clk" @onclick="@clk">Click</EjsButton> 
<EjsGrid id="Grid" @ref="grid" AllowPaging="true" AllowSelection="true" DataSource="@data"> 
    <GridSelectionSettings Type="@SelectionType.Multiple"></GridSelectionSettings> 
private async void clk() 
    var a = await grid.GetSelectedRecords(); 
//serialize the JSON objects using its model class. 
    List<Orders> result = JsonConvert.DeserializeObject<List<Orders>>(JsonConvert.SerializeObject(a));   

Refer the below screenshot for the output 


Till then we appreciate your patience.  

Vignesh Natarajan.  

BE Ben July 1, 2019 12:25 PM UTC

Many Thanks Vignesh

Love the dedication from Syncfusion.  Looking forward t othe nuget package.


VN Vignesh Natarajan Syncfusion Team July 2, 2019 12:51 PM UTC

Hi Ben,  

Thanks for the update.  

We are glad to inform that our latest ( nuget release for Syncfusion blazor components were successfully rolled out. Since we have some major changes in our latest nuget packages release ( Please find the release notes from below  

Also ensure to refer the below nuget package (Syncfusion.EJ2.Blazor) instead of Syncfusion.EJ2.AspNet.Core.RazorComponents. 

We have included the fix for the issue “GetSelectedRecords return void instead of selected records” in this release. So kindly upgrade to latest nuget release ( to achieve your requirement . For your convenience we have prepared a sample which can be downloaded from below  

Refer our UG documentation and online sample browser for your reference 

Please get back to us if you have further queries.    

Vignesh Natarajan. 

Live Chat Icon For mobile
Up arrow icon