CompositeFieldElement in backend page of a module

Posted by Community Admin on 04-Aug-2018 23:37

CompositeFieldElement in backend page of a module

All Replies

Posted by Community Admin on 27-Apr-2012 00:00

I created a custom field template control that has three controls and I was able add this to my module definition. The problem is that whenever I have this control added it breaks the layout of the backend page. Is there some property that I need to set in order to keep the correct layout of the backend page? Below is my code for adding the custom field template control to the backend page (LocationsDefinition.cs)

var hoursOperationsField = new CompositeFieldElement(additionalSection.Fields)
           
                //ID = "hoursOfOperation",
                Title = "Hours of Operation",
                FieldType = typeof(HoursOperationsField),
                ResourceClassId = typeof(LocationsResources).Name,
                DisplayMode = displayMode,
                FieldName = "HoursOfOperationData",
                CssClass = "sfTitleField",
                WrapperTag = HtmlTextWriterTag.Li
            ;


            additionalSection.Fields.Add(hoursOperationsField);
 
detailView.Sections.Add(additionalSection);


Please see attached screenshots.

Thank you

This thread is closed