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

Checkbox in radgrid getting enabled when clicked outside

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anand
Top achievements
Rank 1
Anand asked on 04 Jun 2020, 02:39 PM

Hi,

We have a radgrid in our .aspx page with batchedit functionality, in which we have a column that contains checkboxes.
We will disable/enable the checkboxes based on the value from DB. 
We found an issue here, that is, when a checkbox is disabled based on DB value, and if a user comes and clicks beside the disabled checkbox (outside the checkbox; and inside the same cell in radgrid where this checkbox is present), the disabled checkbox is getting enabled.

Not sure why it is happening. Can someone please help?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Doncho
Telerik team
answered on 09 Jun 2020, 01:53 PM

Hi Anand,

By default when Batch Edit mode is enabled the user needs to click on the cell first and then change its value.

In order to help you troubleshoot the current scenario, I would need to see more details on it. Please share the markup declaration of the RadGrid and the related code-behind, so that we have a better overview of the case.

I am also attaching a basic sample showing RadGrid using GridCheckBoxColumn and GridTemplateColumn with a checkbox for you to test. It would be helpful if you modify the sample so that it reproduces the problem and send it back to us for further troubleshooting in a formal support ticket, or give us the steps to reproduce it locally.

In case you prefer to change the value of a cell by clicking directly on the CheckBox in it, check out the Editing CheckBoxes directly in Batch Edit Mode article.

Kind regards, 
Doncho
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Anand
Top achievements
Rank 1
Answers by
Doncho
Telerik team
Share this question
or