Completed
Last Updated: 13 Jul 2021 12:25 by ADMIN
Mark
Created on: 17 Jul 2017 02:11
Category: Grid
Type: Feature Request
3
Disable row selection toggle for Kendo grid
The current behaviour for row selection is to toggle the selected state.

This is not desirable in cases in which you require one item to always be selected (say, displaying a grid of financial planning scenarios in which one must be selected as the current scenario).
1 comment
ADMIN
Martin Bechev
Posted on: 13 Jul 2021 12:25

Hello Mark,

To disable a row, the developer can apply the .k-state-disabled class (or any custom CSS class) to the desired row by using the rowClass function of the Grid:

https://www.telerik.com/kendo-angular-ui/components/grid/styling/#toc-highlighting-specific-row-cells

To determine which rows can be selected, rowSelected callback could be used. Here is an example demonstrating the suggested properties:

https://stackblitz.com/edit/angular-prwee7

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.