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
215
Invoking command XamComboEditor
posted

I would like to invoke a command when the SelectedItemChanged event is fired on a XamComboEditor.

I can't seem to figure out how to do it. 

The code that I am using that does not work:

<igDP:Field Width="auto" Name="DocumentType" Label="Document Type"  >
                                
       <igDP:Field.Settings>
		<igDP:FieldSettings EditorType="{x:Type igEditors:XamComboEditor}"  >
                         <i:Interaction.Triggers>
                                   <i:EventTrigger EventName="SelectedItemChanged">
                                              <i:InvokeCommandAction Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type igDP:XamDataGrid}}, Path=SaveCommand}"/>
                                   </i:EventTrigger>
                         </i:Interaction.Triggers>
                         <igDP:FieldSettings.EditorStyle>
				  <Style TargetType="{x:Type igEditors:XamComboEditor}">
                                         <Setter Property="ItemsSource" Value="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type igDP:XamDataGrid}}, Path=DataContext.DocumentTypeLookup, Mode=TwoWay, ValidatesOnExceptions=True, ValidatesOnDataErrors=True}"/>
					 <Setter Property="DropDownButtonDisplayMode" Value="MouseOver"/>
</Style>
</igDP:FieldSettings.EditorStyle>

	       </igDP:FieldSettings>
        </igDP:Field.Settings>
</igDP:Field>

 

 

Parents Reply Children
No Data