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>
HI,
Since you wired up the check events
You can get the checkbox from the sender parameter in the check event.
Here a post that may help you
http://community.infragistics.com/forums/t/68279.aspx
Sincerely, Matt Developer Support Engineer
you're missing what I need to do. I need to be able to disable the check bos on page load if a viewmodel property has been set to false, I already have the checked routine wired up and working properly