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 <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); }
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)); }
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); }
public ColumnSpec <T> Add(string columnName, Func <T, long?> valueFunction, int gridWidth, DhtmlxGridColumnAggregationType dhtmlxGridColumnAggregationType) { return(Add(columnName, valueFunction, gridWidth, DhtmlxGridColumnFormatType.Integer, dhtmlxGridColumnAggregationType)); }