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
15
Two different XamComboEditors?
posted

I'm using XamComboEdit and of the key features I need it for is the Auto Complete feature. Here's an example of how I use it in my xaml:

<ig:XamComboEditor
AutoComplete="True"
ItemsSource="{Binding SectionTypes, Mode=OneWay}"
DisplayMemberPath="Type"
SelectedItem="{Binding SectionType}"
Style="{StaticResource AutoCompleteComboBoxStyle}">

<ig:XamComboEditor.ItemFilters>
<ig:ComboItemFilter LogicalOperator="And">
<ig:ComparisonCondition Operator="Contains"/>
</ig:ComboItemFilter>
</ig:XamComboEditor.ItemFilters>
</ig:XamComboEditor>

With ig defined as: xmlns:ig="">schemas.infragistics.com/xaml"

Now, if I try to add ItemsProvider to this it will give me an error. ItemsProvider is not recognized or is not accessible.

This however does allow for ItemsProvider but not AutoComplete:

<editors:XamComboEditor
  DisplayMemberPath="Name"
  SelectedItem="{Binding CircuitId}">

  <editors:XamComboEditor.ItemsProvider>
    <editors:ComboBoxItemsProvider>
      <editors:ComboBoxItemsProvider.Items>
        <editors:ComboBoxDataItem DisplayText="Item 1" Value="Item 1" />
        <editors:ComboBoxDataItem DisplayText="Item 2" Value="Item 2" />
        <editors:ComboBoxDataItem DisplayText="Item 3" Value="Item 3"/>
      </editors:ComboBoxItemsProvider.Items>
    </editors:ComboBoxItemsProvider>
  </editors:XamComboEditor.ItemsProvider>
</editors:XamComboEditor>

With editors: defined as: xmlns:editors="">infragistics.com/Editors"

so it seems there are two different XamComboEditors and they have different options. Is there way to combine the two? I want autocomplete with the ItemsProvider.

  • 34810
    Offline posted

    Hello Michael,

    Unfortunately there is no auto-complete option on the "editors" XamComboEditor. It is worth noting, though, that the "editors" combo was purposed for a XamDataGrid as an editor for that grid. This is the main reason the ItemsProvider was included as well.

    If you are looking to have the AutoComplete functionality in a XamComboEditor, I have to recommend that you use the "ig" one that you are using above. Is there a particular reason that you need an ItemsProvider in this case, rather than just using the ItemsSource?

    If you would like to see the AutoComplete functionality placed in the "editors" XamComboEditor, or the ItemsProvider placed in the "ig" combo editor, I would recommend suggesting a new product idea for these features, which you can do at our product ideas site. This will place you in direct communication with our product management teams who plan and prioritize upcoming features and development based on community and user feedback.

    Please let me know if you have any other questions or concerns on this matter.