Giter Site home page Giter Site logo

devexpress-examples / blazor-dxgrid-disable-selection-checkboxes-by-condition Goto Github PK

View Code? Open in Web Editor NEW
0.0 34.0 1.0 281 KB

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

License: Other

HTML 76.50% C# 23.50%
blazor dxgrid selection devexpress

blazor-dxgrid-disable-selection-checkboxes-by-condition's Introduction

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

blazor-dxgrid-disable-selection-checkboxes-by-condition's People

Contributors

khamlyuk avatar svetlanamikheeva avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.