private void RefreshSimpleFilters() { if (SimpleFilterBuilder != null) { FilterOptions.Clear(); var newFilters = SimpleFilterBuilder.GenerateFilterOptions(); FilterOption.SetFilterTokens(newFilters, Description); FilterOptions.AddRange(newFilters); } }
public void Reinitialize(IEnumerable <FilterOption> filters, List <ColumnOption> columns, ColumnOptionsMode columnOptionsMode, List <OrderOption> orders) { if (qd == null) { qd = DynamicQueryServer.GetQueryDescription(QueryName); } ColumnOptions.Clear(); ColumnOptions.AddRange(columns); ColumnOptionsMode = columnOptionsMode; FilterOptions.Clear(); FilterOptions.AddRange(filters); FilterOption.SetFilterTokens(FilterOptions, qd); OrderOptions.Clear(); OrderOptions.AddRange(orders); OrderOption.SetOrderTokens(OrderOptions, qd); }
public void Reinitialize(List <FilterOption> filters, List <ColumnOption> columns, ColumnOptionsMode columnOptionsMode, List <OrderOption> orders, Pagination pagination) { try { avoidPaginationChange = true; ColumnOptions.Clear(); ColumnOptions.AddRange(columns); ColumnOption.SetColumnTokens(ColumnOptions, Description); ColumnOptionsMode = columnOptionsMode; GenerateListViewColumns(); if (!filters.SequenceEqual(FilterOptions)) { if (SimpleFilterBuilder != null) { SimpleFilterBuilder = null; } FilterOptions.Clear(); FilterOption.SetFilterTokens(filters, Description); FilterOptions.AddRange(filters); } OrderOptions.Clear(); OrderOptions.AddRange(orders); OrderOption.SetOrderTokens(OrderOptions, Description); SortGridViewColumnHeader.SetColumnAdorners(gvResults, OrderOptions); UpdateMultiplyMessage(true); Pagination = pagination; } finally { avoidPaginationChange = false; } }
internal void UpdateFiltersOrdersUserInterface() { FilterOptions.Clear(); if (Request.Filters != null) { FilterOptions.AddRange(Request.Filters.Select(f => new FilterOption { Token = f.Token, Operation = f.Operation, Value = f.Value })); } OrderOptions.Clear(); if (Request.Orders != null) { OrderOptions.AddRange(Request.Orders.Select(o => new OrderOption { Token = o.Token, OrderType = o.OrderType, })); } }