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
490
XamDataGrid and XamComboEditor OpenDropDownOnTyping question ....
posted

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.XamComboEditor
Infragistics.Windows.Editors.XamComboEditor

Thanks a lot for all your help !!

Parents Reply Children
No Data