Disabling selection of rows in the TelerikGrid

1 Answer 62 Views
Checkbox Grid
Afreen
Top achievements
Rank 1
Iron
Afreen asked on 10 Apr 2023, 07:21 PM | edited on 10 Apr 2023, 07:44 PM

Hi,

I am using telerikgrid control to present my data on the page. 

I am using a header GridCheckboxColumn to select the rows. I want to put a condition so that some rows cannot be selected (disabled for selection).

Please can someone provide some solution for this requirement.

 

Thanks,

 

Afreen

1 Answer, 1 is accepted

Sort by
0
Hristian Stefanov
Telerik team
answered on 13 Apr 2023, 03:13 PM

Hi Afreen,

In order to achieve the desired result, you can use the SelectedItemsChanged event, which will give you the current selection in the grid. Then, compare it with the current one, employ the desired business logic to determine what needs to remain selected, and set that to the SelectedItems collection of the grid.

I'm at your disposal if further assistance is needed.

Regards,
Hristian Stefanov
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.

Tags
Checkbox Grid
Asked by
Afreen
Top achievements
Rank 1
Iron
Answers by
Hristian Stefanov
Telerik team
Share this question
or