Hi
I have some questions regarding FieldLayout:
- Do all defined FieldLayouts get initialized?
- Assuming the answer to my first question is no, meaning only used FieldLayouts get initialized, if i switch from one FieldLayout to another, does the old one gets automatically de-initialized?
- Assuming the answer to my first question is yes, how can i know which ones are in used?
- Last but not least if i have multiple layouts defined for parent and child records, how can i get the active top level / root FieldLayout?
Hello Marco,
I have been looking into your issue and was wondering if you could describe in more details what you mean since I am not sure what you mean “new” and “old” layouts and “multiple layouts defined for parent and child records”. Please describe your project in more details so I can get an overall understanding of your scenario.
Looking forward to hearing from you.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Hi Petar
What i meant with new and old layout is, when switching from one FieldLayout (old or FL1) to another (new or FL2), does the old or FL1 gets automatically de-initialized?
And regarding multiple FieldLayout, if i understand correctly the datagrid searches for the approriate FieldLayout in the FieldLayouts collection during initialization. Eg. I defined 3 FieldLayouts (CustomerFL, OrderFL, OrderDetailFL) and load a hierarchiral data (Customer -> Order -> OrderDetail), how can i get the top / root FieldLayout (CustomerFL in the example)? In my project several FieldLayouts get defined for the datagrid and the data is only known at runtime.