Example of Conditional Row Selection in ASP.NET MVC Data Grid Control

This sample demonstrates the conditional row selection of the Data Grid using checkbox selection. It allows end-users to select only specific rows based on certain conditions.

DEMO
SOURCE

In this demo, conditional row selection is implemented using the IsRowSelectable callback function. This callback function executes before the grid loads data, evaluates each row, and returns false for orders with Delivered or Canceled status.

Selection is persisted by enabling selectionSettings -> persistSelection. With this setting, selected rows remain checked across all operations. Persist selection requires at least one column to be defined as a primary key using the columns -> isPrimaryKey property.

Transform your ASP.NET MVC web apps today with Syncfusion® ASP.NET MVC components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab