示例#1
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;
 }
示例#2
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;
 }
示例#3
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)
 {
 }