Hello telerik team and members,
In my project I'm using Telerik controls 2012.3 version with hotfixes (2012.3.1404.40).
Recently, I faced up with problem in RadGridView filtering. I need to set filter from code and change filter settings from UI at the same time. For this I wrote behavior which apply filter when GridViewDataColumn.Loaded event is raised.
And it works fine: filter is active and items are filtered (all_ok.jpg). But if I reloaded underlying collection, filter become inactive and items are no longer filtered(broken_filter.jpg).
What can be cause of that strange filter behavior? Can it be more convenient way to control RadGridView filter both from code and from UI?
I prepared test project. (To reproduce this problem you should click Refresh button 2 times: one to populate GridView, and the second to reload data).
In my project I'm using Telerik controls 2012.3 version with hotfixes (2012.3.1404.40).
Recently, I faced up with problem in RadGridView filtering. I need to set filter from code and change filter settings from UI at the same time. For this I wrote behavior which apply filter when GridViewDataColumn.Loaded event is raised.
private
void
FilterColumn()
{
AssociatedObject.ColumnFilterDescriptor.SuspendNotifications();
AssociatedObject.ColumnFilterDescriptor.FieldFilter.Filter1.Operator = FilterOperator.IsGreaterThan;
AssociatedObject.ColumnFilterDescriptor.FieldFilter.Filter1.Value = 4;
AssociatedObject.ColumnFilterDescriptor.ResumeNotifications();
}
What can be cause of that strange filter behavior? Can it be more convenient way to control RadGridView filter both from code and from UI?
I prepared test project. (To reproduce this problem you should click Refresh button 2 times: one to populate GridView, and the second to reload data).