public object FindControl(string controlID) { return(ElementBase.GetElement(this.GetControls().FirstOrDefault(c => c["id"].ToStringObj() == controlID), null, this.ID, false)); }
public ColumnHtml(JObject obj, HtmlElementHelperModel helper, Guid dynamicFormId, bool isFormReadOnly) : base(obj, helper, dynamicFormId) { this.children = obj["children"].Select(c => ElementBase.GetElement((JObject)c, helper, dynamicFormId, isFormReadOnly)) .Where(c => c != null /**for cheking controls having not access **/).ToList(); }
/// <summary> /// this method set HtmlElement to ColumnHtml and RowHtml and ContentHtml /// </summary> /// <param name="_helper">if set null it does not fill element values.</param> public ContentHtml(JObject obj, HtmlElementHelperModel _helper, Guid dynamicFormId, bool isFormReadOnly) : base(obj, _helper, dynamicFormId) { this.Rows = obj["rows"].Select(c => ElementBase.GetElement((JObject)c, _helper, dynamicFormId, isFormReadOnly)).ToList(); }