How to lock a checkbox in an editable column?

I'm looking for a way to disable checkboxes for specific rows in an editable CheckBoxColumn. This solution makes the checkbox un-editable but it requires the user to click the box twice to toggle it when it is editable.

Is there a way to disable the checkboxes without requiring the addition click?

1 Reply 1 reply marked as answer

DM Dhanasekar Mohanraj Syncfusion Team October 21, 2020 01:11 PM UTC

Thank you for using Syncfusion controls.

 
You can achieve your requirement, by setting syncfusion:FocusManagerHelper.Focused element as true like below, 

Xaml:
 
<syncfusion:GridTemplateColumn MappingName="Conformed"> 
    <syncfusion:GridTemplateColumn.CellTemplate> 
        <DataTemplate> 
            <CheckBox syncfusion:FocusManagerHelper.FocusedElement="True" IsChecked="{Binding Conformed}"   HorizontalAlignment="Center" VerticalAlignment="Center" 
                        IsEnabled="{Binding Conformed, Converter={StaticResource checkBoxConverter}}" /> 
        </DataTemplate> 
    </syncfusion:GridTemplateColumn.CellTemplate> 
    <syncfusion:GridTemplateColumn.CellStyle> 
        <Style TargetType="syncfusion:GridCell"> 
            <Setter Property="Background" Value="{Binding Conformed, Converter = {StaticResource cellbackgroundconverter}}" /> 
        </Style> 
    </syncfusion:GridTemplateColumn.CellStyle> 
</syncfusion:GridTemplateColumn> 
 
We hope it helps, please let us know if you need further assistance.

Regards,
Dhanasekar Mohanraj.
 


Marked as answer
Loader.
Up arrow icon