I have a grid with two field layouts (one parent and one child).
Looks fine until the user resizes the fields at either level or moves the header (which only moves the field header of the top record):
How do I synchronize the field widths and their position? I have seen various posts about this topic and not found a complete solution anywhere yet, and I cant spend hours searching for something that maybe some simple setting. I thought it might be to do with the ParentFieldLayoutKey value, but I can find virtually no documentation on this properties purpose and it doesnt seem to do what I want.
HELP!!
Thanks,Doug Rees
Polo Ralph Lauren
Hello Doug,
I have been looking into your requirement and as for now there is no such built-in functionality. However you can check out this blog post where an approach to do this and there is also a sample project attached: http://blogs.infragistics.com/blogs/josh_smith/archive/2008/07/02/synchronizing-field-widths-between-fieldlayouts-in-xamdatagrid.aspx
Hope this helps.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Hi Peter,
This sample does not seem to work in 10.3 as I posted on that blog yesterday.
Please can you confirm the sample should work with 10.3.
Regards,Doug
Hello Sivasankar,
I can suggest you see this forum thread:
http://ko.infragistics.com/community/forums/t/59135.aspx
where the layouts are synchronized, where there are no headers.
I have a similar problem. however, my problem continues to occur(The column is misaligned when i change based on the child columns) when the LabelLocation of child rows is hidden. Is there a workaround for that?
Hi Petar,
Great. Works fine on initial testing.
Thanks very much.
Doug
I see what you mean, the sample is from 2008 and is a bit outdated. I have taken the liberty of creating a new sample for you. It basically uses the Fields’ Index properties – the first Field in the parent layout is synchronized with the first one in the child layout, the second parent Field is synchronized with the second child Field, etc… Please test it out and let me know if you require any clarification on the matter or I have missed out something in the implementation.
Looking forward to your reply.