Hi,
My XamDataGrid had a field like this:
<ig:UnboundField Label="City" Name="CityName" BindingPath="CityId" BindingMode="TwoWay" Width="150"> <ig:UnboundField.Settings> <ig:FieldSettings AllowEdit="True" EditorStyle="{StaticResource CityValueEditor}"> </ig:FieldSettings> </ig:UnboundField.Settings> </ig:UnboundField>
And the CityValueEditor is:
<Style x:Key="CityValueEditor" TargetType="{x:Type igEditors:XamComboEditor}"> <Setter Property="IsEditable" Value="True" /> <Setter Property="Focusable" Value="True" /> <Setter Property="IsInEditMode" Value="True" /> <Setter Property="OpenDropDownOnTyping" Value="True" /><Setter Property="ItemsSource" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=DataContext.Cities}"/> <Setter Property="DisplayMemberPath" Value="Name"/> <Setter Property="ValuePath" Value="Id" /> </Style>
This is the namespaces used:
xmlns:igEditors="http://infragistics.com/Editors"
The OpenDropDownOnTyping is not recognized.
Any ideas how can I fix it? I really don't want to use codebehind like when keypress then isDropDown=true
I know there's two XamComboEditor on of it is accepting the OpenDropDownOnTyping:
Infragistics.Controls.Editors.XamComboEditorInfragistics.Windows.Editors.XamComboEditor
Thanks a lot for all your help !!
Hello,
Thank you for your post. I have been looking into it and I can say that the Editor, which came from Infragistics.Windows.Editors.XamComboEditor namespace is the WPF editor and it doesn’t have a Property OpenDropDownOnTyping, while the one that is ported from Silverlight and is located in Infragistics.Controls.Editors.XamComboEditor has. If you want to use it you can set it as DataTempalte to the CellValuePresenter’s ContentTempalte Property, because the EditorStyle Property expects a Style of a Control, which inherits ValueEditor and the ported XamCombeEditor doesn’t implements it. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi Stefan,
Can you provide us a little example of that? We really appreciate it.
Many many thanks Stefan.
Hello Phoen,
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.
Many many thanks. It's working great !!
Thanks again for all your help !!
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.