I have bound my XamGrid to an observable list objects.
One of the rows is bound to a property of type integer (Int32).
This is an account number, which I want to display formatted: so raw value is 987654321, display value wanted: "98.76.54.321".I am using an existing converter (deriving from IValueConverter) which functions OK in other applications with other grids.However, when I connect this converter to the Field, it doesn't display anything.The problem is that the XamGrid expects a return value (indicated by TargetType) of type Int32 from my converter. I have set de DataType of the Field from the default object to Int32 or String, but does not have the effect I expect.How can I get the expected behaviour and why is the XamGrid different in this respect from the standaard WPF grid or the other commercial WPF grids?
Hello,
This seems interesting. First thing that comes in my mind is that you have to use a style for the EditorType and specify its type before the layout is generated.
Is it possible to attach a sample project that illustrates the problem?
Alex.
Hi Dahila,
i think this can help you
Can you add this code on the field which you want.
<igDP:Field.Settings
>
}"/>
Thanks
Prakash
Nope, does not help.
I see that you use the Expression version. This is causing some of the problems. In the Express version, not all the editors are available. For example the XamMaskedEditor. You can set the mask as following and get the desired result without the converter:
<igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamMaskedEditor}"> <Setter Property="Mask" Value="##.##.##.###"/> </Style> </igDP:FieldSettings.EditorStyle>
The reason that you cannot convert it as in your example is because the XamNumericEditor (which is the default one of Int typq field ) will not accept String as Value.
Best Regards,