Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
800
Self Referencing Heirarchy field layout settings
posted

Hi There,

I have a datastructure which is a self referencing hierarchy of data (structure of ClassABC where the Groups field on ClassABC has a list of ClassABC and so on). Is there any way to set the field layout settings such that it only applies to the very root of the hierarchy.

The following hides the labels, but it hides them for all levels of the hierarchy including the root...

var level = new FieldLayout {Key = "Level"};
level.Fields.Add(CommonFields.Display.GetField("Name"));
level.Settings = new FieldLayoutSettings { LabelLocation = LabelLocation.Hidden};
level.Fields.Add(new Field {Name = "Groups"IsExpandable = trueVisibility = Visibility.Hidden});
return new[] {level};

I would like this to only apply to the child levels somehow.
Thank you,
Jonathan