public PrFieldUpload(PrForm form, string fieldKey, string label) : base(form, fieldKey) { Label = new Escaper().EscapeJavaScript(label); Required = false; Hidden = false; MergeWithNext = false; }
public PrFieldLabel(PrForm form, string fieldKey, string label) : base(form, fieldKey) { Label = new Escaper().EscapeJavaScript(label); Hidden = false; DefaultValue = string.Empty; MergeWithNext = false; }
public PrFieldButton(PrForm form, string fieldKey, string buttonText) : base(form, fieldKey) { Label = " "; ButtonText = new Escaper().EscapeJavaScript(buttonText); Hidden = false; MergeWithNext = false; }
public PrFieldGridView(PrForm form, string fieldKey, DataTable dt, string tableLabel) : base(form, fieldKey) { ClientSide = true; Data = dt; MergeWithNext = false; FieldLabel = ""; TableLabel = new Escaper().EscapeJavaScript(tableLabel); MultipleSelection = false; Required = false; }
public PrFieldFree(PrForm form, string fieldKey, string label, string source) : base(form, fieldKey) { Label = new Escaper().EscapeJavaScript(label); Required = false; Hidden = false; DefaultValue = string.Empty; MergeWithNext = false; GetValueFunction = "return [''];"; SetValueFunction = "return;"; Source = source; }
public PrFieldRadios(PrForm form, string fieldKey, string label, List<KeyValue> data) : base(form, fieldKey) { Label = new Escaper().EscapeJavaScript(label); Data = data; if (Data == null) { Data = new List<KeyValue>(); } Required = false; Hidden = false; DefaultValue = string.Empty; MergeWithNext = false; }
public PrFieldGridView(PrForm form, string fieldKey, string actionKey, FormService formService, bool clientSide, string tableLabel) : base(form, fieldKey) { ActionKey = actionKey; ClientSide = clientSide; if (ClientSide) { Data = formService.GetDataTableAll(actionKey, null); } else { Data = formService.GetDataTableZero(actionKey, null); } MergeWithNext = false; FieldLabel = ""; TableLabel = new Escaper().EscapeJavaScript(tableLabel); MultipleSelection = false; Required = false; }
public PrFieldRadios SetDefaultValue(string value) { DefaultValue = new Escaper().EscapeJavaScript(value); return this; }
public PrFieldButton SetFieldLabel(string fieldLabel) { Label = new Escaper().EscapeJavaScript(fieldLabel); return this; }
public PrFieldGridView SetFieldLabel(string fieldLabel) { FieldLabel = new Escaper().EscapeJavaScript(fieldLabel); return this; }