We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Multiple checkbox in a cell


Ontap enable edit not working in 2nd check box inside the cell. Is there a way to enable on tap in 2nd checkbox?

Here's my sfdatagrid settings 

 <syncfusion:SfDataGrid x:Name="datasheetsGrid"  
                                       Style="{StaticResource datasheetGridStyle}"                           
                                       ItemsSource="{Binding Model.DataSheets, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                       SelectedItem="{Binding Model.SelectedDataSheets, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" SelectionMode="Single" NavigationMode="Cell"
                                       ScrollViewer.VerticalScrollBarVisibility="Auto"  EditTrigger="OnTap">


                        <syncfusion:GridTemplateColumn AllowSorting="False" Padding="5" >
                                    <TextBlock Text="Test Status" Style="{StaticResource GridHeaderStyle}"/>
                                            <RowDefinition Height="*"/>
                                            <RowDefinition Height="*"/>
                                            <RowDefinition Height="Auto"/>
                                        <CheckBox  IsChecked="{Binding IsConducted,  Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="4,4"  syncfusion:FocusManagerHelper.FocusedElement="True">
                                            <TextBlock Text="Conducted" FontWeight="Bold" Margin="0,-2,0,0"/>
                                        <CheckBox  Grid.Row="1" IsChecked="{Binding IsWaived, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  Margin="4"  syncfusion:FocusManagerHelper.FocusedElement="True">
                                            <TextBlock Text="Waived"  Margin="0,-3,0,0"/>



3 Replies

MA Mohanram Anbukkarasu Syncfusion Team November 26, 2019 12:52 PM UTC

Hi Ariel,   
Thanks for contacting Syncfusion support.    
We have prepared a sample using the provide code example and we are able to reproduce the reported scenario in our end. You can resolve this by creating a custom renderer for the template column to set focus on single tap as shown in the below code example.   
Code example:    
this.dataGrid.CellRenderers.Add("Template", new GridCellTemplateExt());   
public class GridCellTemplateExt : GridCellTemplateRenderer   
    protected override void SetFocus(FrameworkElement uiElement, bool needToFocus)   
        if (!needToFocus)   
Please let us know if you require further other assistance from us.    
Mohanram A  

AR Ariel November 26, 2019 10:27 PM UTC

Thanks it works

FP Farjana Parveen Ayubb Syncfusion Team November 27, 2019 05:19 AM UTC

Hi Ariel, 
Thanks for the update. 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
Farjana Parveen A 

Live Chat Icon For mobile
Up arrow icon