- Home
- Forum
- React - EJ 2
- How to disable selection checkbox for a perticular row on condition basis?
How to disable selection checkbox for a perticular row on condition basis?
I have a data in datagrid. I added a checkbox selection in that datagrid. Now I want to disable some checkboxes on conditional basis like if the data.stage is rejected then I to disable selection on that row. Can you please help with that? Thank you.
Hi Sharad,
Greetings from Syncfusion support
Since your requirement is to prevent specific rows from
being selected in checkbox selection, you can prevent specific rows from being
selected in the checkbox selection mode by hiding the checkboxes using the
rowDataBound event. You achieve this by setting the isSelectable argument as
false in the rowDataBound event based on certain conditions as per the needs of
the application. we have already discussed about your requirement in our
documentation which can be accessed from the below link,
Documentation: https://ej2.syncfusion.com/react/documentation/grid/selection/check-box-selection#prevent-specific-rows-from-being-selected-in-checkbox-selection
Regards,
Rajapandi R
- 1 Reply
- 2 Participants
-
SH Sharad Hake
- Oct 5, 2023 09:18 AM UTC
- Oct 31, 2023 01:22 PM UTC