Exemple #1
0
        private ColumnSpec <T> Add(string columnName, Func <T, double?> valueFunction, Func <T, string> cssClassFunction,
                                   int gridWidth, Func <T, string> titleFunction, DhtmlxGridColumnFormatType dhtmlxGridColumnFormatType,
                                   DhtmlxGridColumnAggregationType dhtmlxGridColumnAggregationType, DhtmlxGridColumnAlignType dhtmlxGridColumnAlignType)
        {
            var columnSpec = new ColumnSpec <T>(columnName, valueFunction, gridWidth,
                                                DhtmlxGridColumnDataType.ReadOnlyNumber, dhtmlxGridColumnFormatType,
                                                dhtmlxGridColumnAlignType, new DhtmlxGridColumnSortType("num"), DhtmlxGridColumnFilterType.Numeric, dhtmlxGridColumnAggregationType, cssClassFunction, titleFunction);

            Add(columnSpec);
            return(columnSpec);
        }
Exemple #2
0
 public ColumnSpec(string columnName, Func <T, bool?> nullableBoolValueFunc, int gridWidth,
                   DhtmlxGridColumnDataType dhtmlxGridColumnDataType, DhtmlxGridColumnFormatType dhtmlxGridColumnFormatType,
                   DhtmlxGridColumnAlignType dhtmlxGridColumnAlignType, DhtmlxGridColumnSortType dhtmlxGridColumnSortType,
                   DhtmlxGridColumnFilterType dhtmlxGridColumnFilterType,
                   DhtmlxGridColumnAggregationType dhtmlxGridColumnAggregationType, Func <T, string> cssClassFunction,
                   Func <T, string> titleFunction)
     : this(
         columnName, gridWidth, dhtmlxGridColumnDataType, dhtmlxGridColumnFormatType, dhtmlxGridColumnAlignType,
         dhtmlxGridColumnSortType, dhtmlxGridColumnFilterType, dhtmlxGridColumnAggregationType, cssClassFunction,
         titleFunction)
 {
     _nullableBoolValueFunc = nullableBoolValueFunc;
     _funcType = FuncType.NullableBool;
 }
Exemple #3
0
 public ColumnSpec(string columnName, Func <T, HtmlString> htmlStringValueFunc, int gridWidth,
                   DhtmlxGridColumnDataType dhtmlxGridColumnDataType, DhtmlxGridColumnFormatType dhtmlxGridColumnFormatType,
                   DhtmlxGridColumnAlignType dhtmlxGridColumnAlignType, DhtmlxGridColumnSortType dhtmlxGridColumnSortType,
                   DhtmlxGridColumnFilterType dhtmlxGridColumnFilterType,
                   DhtmlxGridColumnAggregationType dhtmlxGridColumnAggregationType, Func <T, string> cssClassFunction,
                   Func <T, string> titleFunction)
     : this(
         columnName, gridWidth, dhtmlxGridColumnDataType, dhtmlxGridColumnFormatType, dhtmlxGridColumnAlignType,
         dhtmlxGridColumnSortType, dhtmlxGridColumnFilterType, dhtmlxGridColumnAggregationType, cssClassFunction,
         titleFunction)
 {
     _htmlStringValueFunc = htmlStringValueFunc;
     _funcType            = FuncType.HtmlString;
 }
Exemple #4
0
 private ColumnSpec(string columnName, int gridWidth, DhtmlxGridColumnDataType dhtmlxGridColumnDataType,
                    DhtmlxGridColumnFormatType dhtmlxGridColumnFormatType, DhtmlxGridColumnAlignType dhtmlxGridColumnAlignType,
                    DhtmlxGridColumnSortType dhtmlxGridColumnSortType, DhtmlxGridColumnFilterType dhtmlxGridColumnFilterType,
                    DhtmlxGridColumnAggregationType dhtmlxGridColumnAggregationType, Func <T, string> cssClassFunction,
                    Func <T, string> titleFunction)
 {
     ColumnName = columnName;
     DhtmlxGridColumnDataType = dhtmlxGridColumnDataType;
     GridWidth = gridWidth;
     DhtmlxGridColumnSortType   = dhtmlxGridColumnSortType;
     DhtmlxGridColumnFilterType = dhtmlxGridColumnFilterType;
     GridColumnAggregationType  = dhtmlxGridColumnAggregationType;
     DhtmlxGridColumnFormatType = dhtmlxGridColumnFormatType ?? DhtmlxGridColumnFormatType.None;
     DhtmlxGridColumnAlignType  = dhtmlxGridColumnAlignType;
     _cssClassFunction          = cssClassFunction;
     _titleFunction             = titleFunction;
 }
 private ColumnSpec(string columnName, int gridWidth, DhtmlxGridColumnDataType dhtmlxGridColumnDataType,
                    DhtmlxGridColumnFormatType dhtmlxGridColumnFormatType, DhtmlxGridColumnAlignType dhtmlxGridColumnAlignType,
                    DhtmlxGridColumnSortType dhtmlxGridColumnSortType, DhtmlxGridColumnFilterType dhtmlxGridColumnFilterType,
                    DhtmlxGridColumnAggregationType dhtmlxGridColumnAggregationType, Func <T, string> cssClassFunction,
                    Func <T, string> titleFunction) : this(columnName
                                                           , gridWidth
                                                           , dhtmlxGridColumnDataType
                                                           , dhtmlxGridColumnFormatType
                                                           , dhtmlxGridColumnAlignType
                                                           , dhtmlxGridColumnSortType
                                                           , dhtmlxGridColumnFilterType
                                                           , dhtmlxGridColumnAggregationType
                                                           , cssClassFunction
                                                           , titleFunction
                                                           , false)
 {
 }
Exemple #6
0
        private ColumnSpec <T> Add(string columnName,
                                   Func <T, DateTime?> valueFunction,
                                   Func <T, string> cssClassFunction,
                                   int gridWidth,
                                   Func <T, string> titleFunction,
                                   DhtmlxGridColumnAggregationType dhtmlxGridColumnAggregationType, DhtmlxGridColumnAlignType dhtmlxGridColumnAlignType, DhtmlxGridColumnFormatType dhtmlxGridColumnFormatType)
        {
            var columnSpec = new ColumnSpec <T>(columnName, valueFunction, gridWidth, DhtmlxGridColumnDataType.ReadOnlyText, dhtmlxGridColumnFormatType, dhtmlxGridColumnAlignType, new DhtmlxGridColumnSortType("date"), new DhtmlxGridColumnFilterType("#date_range_filter"), dhtmlxGridColumnAggregationType, cssClassFunction, titleFunction);

            Add(columnSpec);
            return(columnSpec);
        }
Exemple #7
0
 public ColumnSpec <T> Add(string columnName, Func <T, DateTime?> valueFunction, int gridWidth, DhtmlxGridColumnFormatType dhtmlxGridColumnFormatType)
 {
     return(Add(columnName, valueFunction, null, gridWidth, null, null, DhtmlxGridColumnAlignType.Right, dhtmlxGridColumnFormatType));
 }
Exemple #8
0
 public ColumnSpec <T> Add(string columnName, Func <T, double?> valueFunction, int gridWidth, DhtmlxGridColumnFormatType dhtmlxGridColumnFormatType, DhtmlxGridColumnAggregationType dhtmlxGridColumnAggregationType)
 {
     return(Add(columnName, valueFunction, null, gridWidth, null, dhtmlxGridColumnFormatType, dhtmlxGridColumnAggregationType, DhtmlxGridColumnAlignType.Right));
 }
Exemple #9
0
 public ColumnSpec <T> Add(string columnName, Func <T, double?> valueFunction, int gridWidth, DhtmlxGridColumnFormatType dhtmlxGridColumnFormatType)
 {
     return(Add(columnName, valueFunction, gridWidth, dhtmlxGridColumnFormatType, null));
 }