Ejemplo n.º 1
0
        public EditorField(
            string name,
            string label,
            int order,
            IFieldEditor <T> editor,
            FieldInfo fieldInfo       = null,
            PropertyInfo propertyInfo = null)
        {
            Name  = name;
            Label = Utils.SplitCamelCase(label);

            if (!name.EndsWith("GovId") && name != "Id" && name.EndsWith("Id"))
            {
                Label = Label.Substring(0, Label.Length - 3);
            }

            Order        = order;
            Editor       = editor;
            FieldInfo    = fieldInfo;
            PropertyInfo = propertyInfo;
            Column       = 1;
            Order        = int.MaxValue;
            Row          = Guid.NewGuid();
            ShowIf       = (_) => true;
        }
        protected override void CreateChildControls()
        {
            base.CreateChildControls();

            _lookupFieldEditor = lookupFieldEditor as IFieldEditor;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
        /// </summary>
        protected override void CreateChildControls()
        {
            base.CreateChildControls();

            lookupEditor = lookupFieldEditor as IFieldEditor;
        }