I have a field with use a multibinding converter but the data from the converter never get showned
<igDP:Field Name="Hvornår" Label="Hvornår"><igDP:Field.Settings><igDP:FieldSettings EditAsType="{x:Type sys:String}" AllowEdit="False"><igDP:FieldSettings.CellValuePresenterStyle><Style TargetType="{x:Type igDP:CellValuePresenter}"><Setter Property="Content" ><Setter.Value><MultiBinding Converter="{StaticResource HvornaarTextConverter}"><Binding Path="DataItem.Mandag" /><Binding Path="DataItem.Tirsdag" /><Binding Path="DataItem.Onsdag" /><Binding Path="DataItem.Torsdag" /><Binding Path="DataItem.Fredag" /><Binding Path="DataItem.Lørdag" /><Binding Path="DataItem.Søndag" /><Binding Path="DataItem.Periode" /><Binding Path="DataItem.Hvornår" /></MultiBinding></Setter.Value></Setter></Style></igDP:FieldSettings.CellValuePresenterStyle></igDP:FieldSettings></igDP:Field.Settings></igDP:Field>
Hello Christian,
Thank you for your post. I have been looking into it and I can suggest you set the EditorStyle instead of the CellValuePresenter’s like this:
<igDP:Field Name="Hvornar" Label="Hvornar"> <igDP:Field.Settings> <igDP:FieldSettings EditAsType="{x:Type sys:String}" AllowEdit="False"> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamTextEditor}"> <Setter Property="Value" > <Setter.Value> <MultiBinding Converter="{StaticResource HvornaarTextConverter}"> <Binding Path="DataItem.Mandag" /> <Binding Path="DataItem.Tirsdag" /> <Binding Path="DataItem.Onsdag" /> <Binding Path="DataItem.Torsdag" /> <Binding Path="DataItem.Fredag" /> <Binding Path="DataItem.Lordag" /> <Binding Path="DataItem.Sondag" /> <Binding Path="DataItem.Periode" /> <Binding Path="DataItem.Hvornar" /> </MultiBinding> </Setter.Value> </Setter> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field>
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
After making the binding oneway it Works
thank You
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
All,
That is why provide a complete example is better.
The following snippet works, no further action required
</igDP:TextField>
<igDP:UnboundField Name="Mike"
Label="Mike">
<igDP:UnboundField.Settings>
<igDP:FieldSettings EditAsType="{x:Type system:String}"
AllowEdit="False">
<igDP:FieldSettings.EditorStyle>
<Style TargetType="{x:Type igEditors:XamTextEditor}">
<Setter Property="Value">
<Setter.Value>
<MultiBinding Converter="{StaticResource CombineTextConverter}">
<Binding Path="DataItem.Type" />
<Binding Path="DataItem.Status" /> </MultiBinding>
</Setter.Value>
</Setter>
</Style>
</igDP:FieldSettings.EditorStyle>
</igDP:FieldSettings>
</igDP:UnboundField.Settings>
</igDP:UnboundField>
Hi,
Current I am getting a blank grid.
Can you provide a complete working example? Or I can submit what I have so far.
I am attempting to bind multiple data values in to a single column, if I can get this work I will be able to expand its usage.
Thanks,
Michael
Snippet:
<igDP:TextField AlternateBinding="{Binding Type}"
Label="Order Type"
Name="Type">
<igDP:TextField.Settings>
<igDP:FieldSettings CellValuePresenterStyle="{StaticResource TextFieldStyle}" />
</igDP:TextField.Settings>
<igDP:TextField AlternateBinding="{Binding Status}"
Label="Order Status"
Name="Status">
<igDP:TextField Name="Mike"
<MultiBinding Converter="{StaticResource CombineTextConverter}" Mode="OneTime">