Exemple #1
0
        private ColumnSpec <T> Add(string columnName, Func <T, long?> valueFunction, Func <T, string> cssClassFunction,
                                   int gridWidth, Func <T, string> titleFunction, DhtmlxGridColumnFormatType dhtmlxGridColumnFormatType,
                                   DhtmlxGridColumnFilterType dhtmlxGridColumnFilterType, DhtmlxGridColumnAggregationType dhtmlxGridColumnAggregationType,
                                   DhtmlxGridColumnAlignType dhtmlxGridColumnAlignType)
        {
            var columnSpec = new ColumnSpec <T>(columnName, valueFunction, gridWidth,
                                                DhtmlxGridColumnDataType.ReadOnlyNumber, dhtmlxGridColumnFormatType,
                                                dhtmlxGridColumnAlignType, new DhtmlxGridColumnSortType("num"), dhtmlxGridColumnFilterType, 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 <T> Add(string columnName,
                                   Func <T, string> valueFunction,
                                   Func <T, string> cssClassFunction,
                                   int gridWidth,
                                   Func <T, string> titleFunction,
                                   DhtmlxGridColumnFilterType dhtmlxGridColumnFilterType,
                                   DhtmlxGridColumnAlignType dhtmlxGridColumnAlignType)
        {
            var columnSpec = new ColumnSpec <T>(columnName, valueFunction, gridWidth,
                                                DhtmlxGridColumnDataType.ReadOnlyText, DhtmlxGridColumnFormatType.None, dhtmlxGridColumnAlignType, new DhtmlxGridColumnSortType("str"), dhtmlxGridColumnFilterType, null, cssClassFunction, titleFunction);

            Add(columnSpec);
            return(columnSpec);
        }
Exemple #5
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)
 {
 }
        private ColumnSpec <T> Add(string columnName,
                                   Func <T, HtmlString> valueFunction,
                                   Func <T, string> cssClassFunction,
                                   int gridWidth,
                                   Func <T, string> titleFunction,
                                   DhtmlxGridColumnFilterType dhtmlxGridColumnFilterType,
                                   DhtmlxGridColumnAggregationType dhtmlxGridColumnAggregationType,
                                   DhtmlxGridColumnAlignType dhtmlxGridColumnAlignType,
                                   bool hiddenColumnForCsv)
        {
            var columnSpec = new ColumnSpec <T>(columnName, valueFunction, gridWidth,
                                                DhtmlxGridColumnDataType.ReadOnlyHtmlText, DhtmlxGridColumnFormatType.None,
                                                dhtmlxGridColumnAlignType, new DhtmlxGridColumnSortType("htmlstring"), dhtmlxGridColumnFilterType, dhtmlxGridColumnAggregationType, cssClassFunction, titleFunction, hiddenColumnForCsv);

            Add(columnSpec);
            return(columnSpec);
        }
Exemple #8
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 #9
0
 public ColumnSpec <T> Add(string columnName, Func <T, HtmlString> valueFunction, int gridWidth, DhtmlxGridColumnFilterType dhtmlxGridColumnFilterType, DhtmlxGridColumnAlignType dhtmlxGridColumnAlignType)
 {
     return(Add(columnName, valueFunction, null, gridWidth, null, dhtmlxGridColumnFilterType, null, dhtmlxGridColumnAlignType));
 }