Helo!
I have a grid bind to a xml file X10MapData.
<X10Element ID="X10CMD_VOL_UP">
<Function>VolumeDown</Function>
</X10Element>
<Command>X10CMD_VOL_DN</Command>
<DefaultFunction>VolumeUp</DefaultFunction>
</X10Map>
In second column I need a combobox.
I define a style for the "combobox-column":
<Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key="Fkt">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">
<ComboBox ItemsSource="{TemplateBinding Content}" IsSynchronizedWithCurrentItem="True" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
And here ist my DataGrid:
DataSource="{Binding Source={StaticResource X10MapData}, XPath=X10Element}">
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings AutoGenerateFields="False" />
</igDP:XamDataGrid.FieldLayoutSettings>
<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout>
<igDP:FieldLayout.Fields>
<igDP:Field Name="Command" Label="Kommando" >
<igDP:Field.Settings>
<igDP:FieldSettings CellMinWidth="200" CellWidth="200" />
</igDP:Field.Settings>
</igDP:Field>
<igDP:Field Name="Function" Label="Funktion">
<igDP:FieldSettings CellMinWidth="200" CellWidth="200" CellValuePresenterStyle="{StaticResource Fkt}" />
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>
My problem: the combobox doesn't show the string "VolumeUp" (from xml file) in one line! Each letter (V,o,l,u,m,e,U,p) is a element of the combobox!
I hope you can help me!
Thanks,
Adi
Forwarding this thread to :
http://community.infragistics.com/forums/p/31345/172321.aspx#172321
I have the same issue.
Can anyone answer this?