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 enable/disable a cell from a property change in another cell in the same row ?
posted

I have a grid with 2 template columns next to each other if a specific value is selected in the first cell I need the second cell to enable/disable appropriately here is the xaml for my two cells

1rst cell that should  initiate the enable eisable the value I'm looking at is the key

  <igGrid:TemplateColumn Key="CategoryClass" IsFilterable="True" MinimumWidth="150" Width="Auto" IsResizable="True" IsReadOnly="True"
                                           FilterColumnSettings="{StaticResource FilterColumnSettingsBool}">
                        <igGrid:TemplateColumn.HeaderTemplate>
                            <DataTemplate>
                                <TextBlock Text="Type" />
                            </DataTemplate>
                        </igGrid:TemplateColumn.HeaderTemplate>
                        <igGrid:TemplateColumn.ItemTemplate>
                            <DataTemplate>
                                <igXamCombo:XamComboEditor x:Name="cboCategoryClass" 
                                                           Width="100"                                                 
                                        ItemsSource="{StaticResource CategoryClassOptionsList}"
                                        SelectedItem="{Binding CategoryClass, Mode=TwoWay, Converter={StaticResource CategoryClassConverter}
                                        ,ConverterParameter={StaticResource CategoryClassOptionsList}}"
                                        DisplayMemberPath="Text"                                    
                                        IsEditable="False">
                                </igXamCombo:XamComboEditor>
                            </DataTemplate>
                        </igGrid:TemplateColumn.ItemTemplate>
                        <igGrid:TemplateColumn.FilterEditorTemplate >
                            <DataTemplate >
                                <igXamCombo:XamComboEditor x:Name="cboCategoryClassF" 
                                                           Width="100"                                                 
                                        ItemsSource="{StaticResource CategoryClassOptionsList}"
                                         SelectedItem="{Binding Value, Mode=TwoWay, Converter={StaticResource CategoryClassConverter}
                                        ,ConverterParameter={StaticResource CategoryClassOptionsList}}"
                                        DisplayMemberPath="Text"                                    
                                        IsEditable="False">
                                </igXamCombo:XamComboEditor>
                            </DataTemplate>
                        </igGrid:TemplateColumn.FilterEditorTemplate>
                        <igGrid:TemplateColumn.FilterItemTemplate>
                            <DataTemplate>
                                <igXamCombo:XamComboEditor x:Name="cboCatClass" 
                                                           Width="100"                                                 
                                        ItemsSource="{StaticResource CategoryClassOptionsList}"
                                        SelectedItem="{Binding Value, Mode=TwoWay, Converter={StaticResource CategoryClassConverter}
                                        ,ConverterParameter={StaticResource CategoryClassOptionsList}}"
                                        DisplayMemberPath="Text"                                    
                                        IsEditable="False">
                                </igXamCombo:XamComboEditor>
                            </DataTemplate>
                        </igGrid:TemplateColumn.FilterItemTemplate>                        
                    </igGrid:TemplateColumn>

second column that should enable/disable unfortunately the call to the converter never gets called?????
         <igGrid:TemplateColumn Key="VisitBased" IsFilterable="True" MinimumWidth="150" Width="Auto" IsResizable="True" IsReadOnly="True"
                                           FilterColumnSettings="{StaticResource FilterColumnSettingsBool}">
                        <igGrid:TemplateColumn.HeaderTemplate>
                            <DataTemplate>
                                <TextBlock Text="Basis" />
                            </DataTemplate>
                        </igGrid:TemplateColumn.HeaderTemplate>
                        <igGrid:TemplateColumn.ItemTemplate>
                            <DataTemplate>
                                <igXamCombo:XamComboEditor x:Name="cboVisitBased" 
                                                           Width="100"                                                 
                                        ItemsSource="{StaticResource VisitBasedOptionsList}"
                                        SelectedItem="{Binding VisitBased, Mode=TwoWay, Converter={StaticResource VisitBasedConverter}
                                        ,ConverterParameter={StaticResource VisitBasedOptionsList}}"
                                        DisplayMemberPath="Text"                                                             
                                         IsEnabled="{Binding CategoryClass,Converter={StaticResource VisitBasedConverterEnabled},Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,BindsDirectlyToSource=True}"
                                IsEditable="False">
                                </igXamCombo:XamComboEditor>
                            </DataTemplate>
                        </igGrid:TemplateColumn.ItemTemplate>
 
                        <igGrid:TemplateColumn.FilterEditorTemplate >
                            <DataTemplate >
                                <igXamCombo:XamComboEditor x:Name="cboVisitBased" 
                                                           Width="100"                                                 
                                        ItemsSource="{StaticResource VisitBasedOptionsList}"
                                         SelectedItem="{Binding Value, Mode=TwoWay, Converter={StaticResource VisitBasedConverter}
                                        ,ConverterParameter={StaticResource VisitBasedOptionsList}}"
                                        DisplayMemberPath="Text"                                    
                                        IsEditable="False">
                                </igXamCombo:XamComboEditor>
                            </DataTemplate>
                        </igGrid:TemplateColumn.FilterEditorTemplate>
                        <igGrid:TemplateColumn.FilterItemTemplate>
                            <DataTemplate>
                                <igXamCombo:XamComboEditor x:Name="cboVisitBased" 
                                                           Width="100"                                                 
                                        ItemsSource="{StaticResource VisitBasedOptionsList}"
                                        SelectedItem="{Binding Value, Mode=TwoWay, Converter={StaticResource VisitBasedConverter}
                                        ,ConverterParameter={StaticResource VisitBasedOptionsList}}"
                                        DisplayMemberPath="Text"                                    
                                        IsEditable="False">
                                </igXamCombo:XamComboEditor>
                            </DataTemplate>
                        </igGrid:TemplateColumn.FilterItemTemplate>
 
                    </igGrid:TemplateColumn>-

Parents Reply Children
No Data