I have a GridView bound to a DomainDataSource. I want to filter the records based on who is logged in.... so I added the filter like so.
When I ran SQL profiler I noticed that the query was returning everything and the filtering was happening all client-side. I would like the grid to be filtered and have the filter symbol highlighted on the column....but I only want to retrieve the records needed. If the filter is cleared on the gridView then go and retreive all the records. I'm not sure this is possible but I thought I would ask.
Thanks
ColumnFilterDescriptor recruiterColumnFilter = new ColumnFilterDescriptor((IDataFieldDescriptor)this.rgvCandidates.Columns["Recruiter"]); |
recruiterColumnFilter.FieldFilter.Filter1.Operator = Telerik.Windows.Data.FilterOperator.Contains; |
recruiterColumnFilter.FieldFilter.Filter1.Value = "Kev"; |
this.rgvCandidates.FilterDescriptors.Add(recruiterColumnFilter); |
When I ran SQL profiler I noticed that the query was returning everything and the filtering was happening all client-side. I would like the grid to be filtered and have the filter symbol highlighted on the column....but I only want to retrieve the records needed. If the filter is cleared on the gridView then go and retreive all the records. I'm not sure this is possible but I thought I would ask.
Thanks