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
545
xamComboEditor hide/disable items
posted

Hello.

We use XamComboEditor with following Properties

<igEditors:XamComboEditor IsEditable="True" />

and following Style for ComboBoxItem to disable and hide items in the editor

<Style TargetType="ComboBoxItem">
<Setter Property="Visibility" Value="{Binding IsBusinessActive, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Visible}"/>
<Setter Property="IsEnabled" Value="{Binding IsBusinessActive, FallbackValue=true}" />
</Style>

 This works for the entries in the drop down selected with mouse.

But if the user enters text (autocomplete) or use the KeyUp or KeyDown on the keyboard the whole datasource is available.

Is there any solution for this issue?

Roman

Parents
  • 545
    posted

    for example, our dataset is looks like:

    Item1:

    IsBusinessActiv = True

    Name = ABC

    Item2:

    IsBusinessActiv = False

    Name = DEF

    Item3:

    IsBusinessActiv = True

    Name = GHJ

    The ComboEdit shows Item1 and Item3. This is Correct. But if I Search the Item2 with the keyword "DEF" the Item2 become our selected value. This scenario should not happen.

Reply Children