protected async Task ApplyButtonClicked() { FilterCollection filters = new FilterCollection(_filters); if (filters.Count() > 1) { filters.Add(GridFilterType.Condition.ToString("d"), "2"); } await GridHeaderComponent.AddFilter(filters); }
protected async Task ApplyButtonClicked() { var filters = _filters.Select(r => new Filter(r.Type, DateTimeUtils.GetDateTimeStringFromMonthDate(r.Value))); FilterCollection filterCollection = new FilterCollection(filters); if (filterCollection.Count() > 1) { filterCollection.Add(GridFilterType.Condition.ToString("d"), _condition); } await GridHeaderComponent.AddFilter(filterCollection); }
protected async Task ApplyButtonClicked() { FilterCollection filters = new FilterCollection(_filters); // Add 'z' at the end of values if grid uses an OData back-end if (GridHeaderComponent.GridComponent.Grid.ServerAPI == ServerAPI.OData) { foreach (var filter in filters) { DateTime date = DateTime.Parse(filter.Value); filter.Value = ODataDateTimeConverter.ToDateString(date); } } if (filters.Count() > 1) { filters.Add(GridFilterType.Condition.ToString("d"), _condition); } await GridHeaderComponent.AddFilter(filters); }
protected async Task ApplyButtonClicked(string filterValue) { await GridHeaderComponent.AddFilter(new FilterCollection(GridFilterType.Equals.ToString("d"), filterValue)); }
protected async Task ApplyFalseButtonClicked() { await GridHeaderComponent.AddFilter(new FilterCollection(GridFilterType.Equals.ToString("d"), "false")); }