Beispiel #1
0
        /// <summary>
        /// Specifies data sorting options.
        /// </summary>
        public DataSourceOptionsBuilder Sort(Action <DataSourceSortBuilder> configurator)
        {
            DataSourceSortBuilder dataSourceSortBuilder = new DataSourceSortBuilder(CreateChildContext("sort"));

            configurator(dataSourceSortBuilder);
            dataSourceSortBuilder.AttachNestedOptionsToParent(base.Options);
            return(this);
        }
Beispiel #2
0
 /// <summary>
 /// Specifies data grouping options.
 /// </summary>
 public DataSourceOptionsBuilder Group(string fieldName, bool desc = false)
 {
     base.Options["group"] = DataSourceSortBuilder.CreateSortInfo(fieldName, desc);
     return(this);
 }