Beispiel #1
0
        public static string Variable(VariableElement var)
        {
            string themeClass = GetThemeClass(var, var.Instance.Settings.Theme.ReadonlyAttribute);
            Dictionary<string, object> properties = new Dictionary<string, object>();
            properties[Properties.HTMLATT.ReadOnly] = true;
            GetControlInfo(var, properties);

            return WebForm.Variable(var.VariableName, themeClass, null, properties);
        }
Beispiel #2
0
 public static string GridVariable(VariableElement var)
 {
     string themeClass = GetThemeClass(var, var.Instance.Settings.Theme.ReadonlyGridAttribute);
     Dictionary<string, object> properties = new Dictionary<string, object>();
     properties[Properties.HTMLSFLCOL.ReadOnly] = true;
     GetControlInfo(var, properties,false,true);
     AddCustomRenderColProperties(properties, var);
     return WebForm.GridVariable(var.VariableName, themeClass, var.Description, var.Visible, null, properties);
 }