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

How to keep checkbox position when sorting columns

Thread ID:





149453 Nov 27,2019 03:04 AM UTC Nov 29,2019 08:36 AM UTC ASP.NET Core - EJ 2 2
Tags: DataGrid
Brian Di Croce
Asked On November 27, 2019 03:04 AM UTC


When using a grid with checkboxes, how can we persist the checkbox for the item when sorting columns?

For example, a datagrid has three items: A, B and C.

When the user ticks the checkbox for C and then sorts the grid in descending order by clicking on a column header (i.e., by name), the checkbox is still checked in the 3rd row, but the grid now shows A as being selected, because the grid now displays C, B and A (after the descending sort order).

For a concrete example, you can use this example: https://ej2.syncfusion.com/aspnetcore/Grid/GridOverview#/material. Select the checkbox for the first item, then sort by a column...you will notice that the first item is still checked, but not for the correct value.


Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On November 27, 2019 12:39 PM UTC

Hi Brian,

Usually, checkbox selection with the persistSelection property must be works with data presence in the Grid. But in this case, it is misbehaving. We are validating the problem at our end and we will update you further details in two business days.

Seeni Sakthi Kumar S 

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On November 29, 2019 08:36 AM UTC

Hi Brian, 

Thanks for your patient. 

We have checked your query at our end. By default, checkbox selection is maintaining depends upon the primary key. Please refer to the below sample. 

But for this case, we suspect you are using checkbox selection with enabling virtualization property. So we validated and confirmed it is not feasible for our current grid architecture’s limitations. Please refer to the below limitation link for more information. 

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