Exemplo n.º 1
0
        public ColumnSpec <T> AddCheckBoxColumn()
        {
            var columnSpec = new ColumnSpec <T>(string.Empty, x => 0.ToString(), 28, DhtmlxGridColumnDataType.Checkbox,
                                                DhtmlxGridColumnFormatType.None, DhtmlxGridColumnAlignType.Center, new DhtmlxGridColumnSortType("ch"), DhtmlxGridColumnFilterType.None, null, null, null);

            Add(columnSpec);
            return(columnSpec);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 5
0
        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);
        }