This is a migrated thread and some comments may be shown as answers.

I need to disable the check box

3 Answers 1916 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Wajdi
Top achievements
Rank 1
Wajdi asked on 21 Apr 2021, 03:03 PM

hello,

I need to disable checkboxes when a button is pressed in a grid (GridCheckboxColumn), I tried with a template row but I couldn't find how to persist the selection between the column and the checkboxes created on the template

if anyone could help me please, it would be appreciated

3 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 21 Apr 2021, 05:47 PM

Hello Wajdi,

You can also Follow this feature's implementation that will provide such an ability from the grid's side: https://feedback.telerik.com/blazor/1441291-ability-to-enable-disable-checkbox-in-checkbox-column-to-allow-prevent-selection-of-the-row. The thread offers three ideas you could use right now. I've also added your Vote to it on your behalf to raise its priority.

You can find an example of using custom checkboxes for row selection here: https://feedback.telerik.com/blazor/1463819-grid-row-template-with-selection-unsure-how-to-bind-to-selected-item.

Regards,
Marin Bratanov
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

0
Wajdi
Top achievements
Rank 1
answered on 22 Apr 2021, 07:56 AM
thanks for the reply and the feature request link
0
Accepted
Wajdi
Top achievements
Rank 1
answered on 22 Apr 2021, 08:27 AM

I wanted to edit my reply so I wouldn't post another one but anyway

thank you Marin for the efficient reply, the code that you proposed on the linked post worked

Tags
MultiSelect
Asked by
Wajdi
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Wajdi
Top achievements
Rank 1
Share this question
or