I have several fieldlayouts each which share some common fields, is there away i declare a fieldsettings once and resuse it with any field wherever I want?
For example I have a common field settings that specify the CellMinWidthand CellMaxWidth for a field, currently I have to declare this in every common filed of every layout.
<igDP:Field.Settings> <igDP:FieldSettings AllowEdit="False" CellMinWidth="150" CellMaxWidth="150" CellClickAction="SelectRecord"/> </igDP:Field.Settings>
Hello,
Thank you for your post. I have been looking through it and I suggest you put the following code in your XamDataGrid:
<igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings CellMinWidth="100" CellMaxWidth="150" AllowEdit="False"/> </igDP:XamDataGrid.FieldSettings>
to achieve your goal. Please let me know if this helps you or you need further clarifications on this matter.
Looking forward for your reply.
Nope, because the thats going to set all fields to that. If I have two or more common fields that each have different widths then this achieves nothing,
I actually have 14 field layouts in my case
Each layout has radically different fields including the number of the fields but say they all share three or four common fields but each common filed is itself different than the others but all fields of the same type must look the same, currently I have to declare this field settings in each layout by copying and pasting but its annoying If i have to change it again. Is there no way to share a field settings among the layouts by declaring it as a resource ? Styles would be perfect here but there is no style for a fieldsetting