Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3305
How to access a checkbox in a column Header template?
posted

I have a template columns defined in my grid(s) with Headertemplates that contain select all/deselect all Checkboxes in them. We have security defined that should render pages as read only. I don't want to disale everything because selection and scrolling must still be enabled, so how would I acess this checkbox from code behind?

here is the xaml defining the column

 <igGrid:TemplateColumn Key="Active" HorizontalContentAlignment="Center" HeaderText="Selected" IsFixed="Left" IsFilterable="True">
                            <igGrid:TemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <CheckBox Content="Select All" Name="chkExtractCheckAll"  Checked="chkCheckAll_Checked" Unchecked="chkCheckAll_Checked"  />
                                </DataTemplate>
                            </igGrid:TemplateColumn.HeaderTemplate>
                            <igGrid:TemplateColumn.ItemTemplate>
                                <DataTemplate>
                                    <CheckBox HorizontalAlignment="Center" IsChecked="{Binding Path=Active,Mode=TwoWay}"/>
                                </DataTemplate>
                            </igGrid:TemplateColumn.ItemTemplate>
                            <igGrid:TemplateColumn.FilterEditorTemplate >
                                <DataTemplate >
                                    <CheckBox VerticalAlignment="Center"  HorizontalAlignment="Center" IsChecked="{Binding Value,Mode=TwoWay}" />
                                </DataTemplate>
                            </igGrid:TemplateColumn.FilterEditorTemplate>
 
                            <igGrid:TemplateColumn.FilterItemTemplate>
                                <DataTemplate>
                                    <CheckBox VerticalAlignment="Center" HorizontalAlignment="Center"  IsChecked="{Binding Value,Mode=TwoWay}" />
                                </DataTemplate>
                            </igGrid:TemplateColumn.FilterItemTemplate>
                        </igGrid:TemplateColumn>
Parents Reply Children