Hi,
I have a XamGrid one of the columns will be a combobox column. Now, I have another similar kind of scenario where the combobox has the itemsource specified from a different StaticResource (according to this post http://ko.infragistics.com/community/forums/t/64214.aspx).
However, now I want the combobox to also point to the same data source as that of the XamGrid's source (which is a data table). Is this possible in any way? I cannot have a new Static Resource with the data split across to make it the combobox's item source, we are on v11.2
Hello Arpita,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I created a Style for the ComboBox and set it to the ComboBoxColumn’s EditorStyle. This way I was able to bind the ComboBox’ ItemsSource trough the DataContext. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Thank you for the suggestion it helps !
Have a follow up question - I have changed the item template to display checkbox in every row along with the text.
<ig:ComboBoxColumn.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="0"> <CheckBox VerticalAlignment="Center" Margin="1,0,1,0"/> <Label Content="{Binding Path=Product}" Style="{StaticResource SmallHeaderLabelStyle}" Margin="3,0,0,0"/> </StackPanel> </DataTemplate> </ig:ComboBoxColumn.ItemTemplate>
Is it possible to make the top row just display a single comma separated sting of the checked items in the drop down?