Example #1
0
        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;
        }