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
No Data
Reply
  • 27093
    posted

    Hello, 

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

    If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.

Children