Esempio n. 1
0
        public StringColumn(SmartGridColumnInfo info, int swidth, SmartGridAttribute.ColumnTypeEnum colType)
        {
            string mdataprop = info.PropertyName;

            sClass = "c" + mdataprop;
            switch (colType)
            {
            case SmartGridAttribute.ColumnTypeEnum.Text:
            case SmartGridAttribute.ColumnTypeEnum.TextNoFilter:
            case SmartGridAttribute.ColumnTypeEnum.Date:
            case SmartGridAttribute.ColumnTypeEnum.Currency:
            case SmartGridAttribute.ColumnTypeEnum.Decimal2Places:
            case SmartGridAttribute.ColumnTypeEnum.Decimal4Places:
            case SmartGridAttribute.ColumnTypeEnum.Select:
            case SmartGridAttribute.ColumnTypeEnum.CheckBox:
                mDataProp = mdataprop;
                orderable = true;
                if (!string.IsNullOrEmpty(info.Attribute.ToolTipField))
                {
                    sClass = info.Attribute.ToolTipField;
                }
                sWidth = swidth + "%";
                break;
            }
        }
Esempio n. 2
0
        public CustomColumn(SmartGridColumnInfo info, SmartGridAttribute.ColumnTypeEnum colType)
        {
            string mdataprop = info.PropertyName;

            switch (colType)
            {
            case SmartGridAttribute.ColumnTypeEnum.DetailColumn:
            case SmartGridAttribute.ColumnTypeEnum.EditColumn:
            case SmartGridAttribute.ColumnTypeEnum.DeleteColumn:
                className = colType.ToString();
                mDataProp = mdataprop;
                orderable = false;
                sWidth    = "0%";
                break;
            }
        }
Esempio n. 3
0
        public CostumColumnDef(SmartGridColumnInfo info, int index, SmartGridAttribute.ColumnTypeEnum colType)
        {
            switch (colType)
            {
            case SmartGridAttribute.ColumnTypeEnum.CheckBox:
                targets    = index;
                searchable = false;
                orderable  = false;
                width      = "1%";
                render     = colType.ToString();
                break;

            case SmartGridAttribute.ColumnTypeEnum.Date:
            case SmartGridAttribute.ColumnTypeEnum.Currency:
            case SmartGridAttribute.ColumnTypeEnum.Decimal2Places:
            case SmartGridAttribute.ColumnTypeEnum.Decimal4Places:
                targets    = index;
                searchable = false;
                orderable  = true;
                render     = colType.ToString();
                break;
            }
        }