Hi. In the winforms version of your combobox there is a nice feature to be able to bind a dataset to the combobox to show a grid in the drop down. Is this available in the XamComboEditor. If not any ideas how to set this up?
Hi,
Which is the version of our product that you are using?
Thanks,
Anastas
Hi Alex,
I am following your example how to solve XamComboEditor with dropdown grid. I have one question? How can I programatically say to Comb dropdown open?
I found IsDropDownOpen property, but it does not work. :(
Michal
On a side note. Stick with standard plain and simple WPF controls. Most 3d party ones are way over-engineered.
I think the proposed solution is a bit too complex for something as simple as ComboBox.
Just use ComboBoxStyle - it is FAR more intuitive and easier to use.
The snippet is below. Just replace DataTemplate with somethings that suits your needs better.
Enjoy
<igEditors:XamComboEditor Name="ComboAccount">
<igEditors:XamComboEditor.ComboBoxStyle>
<Style TargetType="{x:Type ComboBox}">
<Setter Property="IsTextSearchEnabled" Value="True" />
<Setter Property="ItemsControl.ItemTemplate">
<Setter.Value>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=Code}"/>
<TextBlock Text=", "/>
<TextBlock Text="{Binding Path=Secname}"/>
</StackPanel>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</igEditors:XamComboEditor.ComboBoxStyle>
</igEditors:XamComboEditor>
Hello,
Thanks for the sample as it's very usefull.However I have some questions :1 - When the combobox has the focus, the selected text is not displayed even if the value is correct. I have to click outside the combo box to see it. It can be reproduced by simply opening and closing the combo box, or by selecting it using the tab key.2 - Once the combo box has the focus, using the down arow key has an unexpected effect : the entire grid is displayed in the text property of the combo box. I tried to handle the KeyDown event and set the IsDropDownOpen property to true, but with no success.3 - The same problem appears when using the "gourp by area" functionality of the grid. Furhtermore, when displaying the grid again and clicking on a row an exception occurs.
Please could you provide any help concerning these points ?Thanks