Skip to content

This example demonstrates how to disable CheckBoxes in the Selection Column in specific rows.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/blazor-dxgrid-disable-selection-checkboxes-by-condition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grid for Blazor - Disable Selection Checkboxes in Specific Rows

This example illustrates how to prevent users from selecting specific data items in the DevExpress Grid for Blazor. The Grid component's selection column displays checkboxes that allow users to select and deselect items. In this example, the component disables these checkboxes for items whose Summary field is set to Mild.

Grid with Disabled Selection Checkbox

Follow the steps below to allow users to select only the items that match your criteria:

  1. Use the DxGridSelectionColumn's CellDisplayTemplate to replace the built-in checkbox with a custom DxCheckBox editor.

  2. Implement two-way data binding between the Checked property of the checkbox and the template context's Selected property.

  3. Set the checkbox's Enabled property to true or false, depending on whether the current item matches your criteria.

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This example demonstrates how to disable CheckBoxes in the Selection Column in specific rows.

Topics

Resources

License

Stars

Watchers

Forks