This question is locked. New answers and comments are not allowed.
Hello,
I have a small code sample which demonstrates when the operator is changed in the field filter descriptor, the RadGridView Filtered event does not fire. The grid data updates appropriately however.
Here is the MainPage xaml:
and here is the code behind:
Here are the steps to reproduce:
1. Click the LastName column filter, select a distinct value filter item (filter event fires)
2. Click the LastName column filter, de-select the distinct value filter item from above (filter event fires)
3. Select Ends with for the first field filter descriptor and enter a value of 5
4. Select Ends with for the second field filter descriptor and enter a value of 2
5. Click Filter (filter event fires)
6. Change the operator in the field filter descriptor from And to Or (the grid updates, filter event does NOT fire)
7. Click Filter button (filter event still does NOT fire)
I am using Telerik controls 2010.1.603.1030 in a Silverlight 3 project.
Thanks,
Brice Mason
I have a small code sample which demonstrates when the operator is changed in the field filter descriptor, the RadGridView Filtered event does not fire. The grid data updates appropriately however.
Here is the MainPage xaml:
<UserControl x:Class="GridFilter.MainPage" xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <Grid x:Name="LayoutRoot" Background="White"> <telerikGrid:RadGridView x:Name="SampleGrid" /> </Grid></UserControl>
and here is the code behind:
using System;using System.Collections.Generic;using System.Diagnostics;using System.Windows.Controls;using Telerik.Windows.Controls;using Telerik.Windows.Data;namespace GridFilter{ public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); // fill the sample grid with data SampleGrid.ItemsSource = GetSampleData(); SampleGrid.Filtered += new EventHandler<Telerik.Windows.Controls.GridView.GridViewFilteredEventArgs>(OnGridFiltered); } private void OnGridFiltered(object sender, Telerik.Windows.Controls.GridView.GridViewFilteredEventArgs e) { Debug.WriteLine("Filtered event fired"); } private List<SampleItem> GetSampleData() { List<SampleItem> sample = new List<SampleItem>(); for( int i = 0; i < 25; i++ ) { sample.Add( new SampleItem() { FirstName = "First Name " + i, LastName = "Last Name " + i } ); } return sample; } } public class SampleItem { public string FirstName { get; set; } public string LastName { get; set; } }}Here are the steps to reproduce:
1. Click the LastName column filter, select a distinct value filter item (filter event fires)
2. Click the LastName column filter, de-select the distinct value filter item from above (filter event fires)
3. Select Ends with for the first field filter descriptor and enter a value of 5
4. Select Ends with for the second field filter descriptor and enter a value of 2
5. Click Filter (filter event fires)
6. Change the operator in the field filter descriptor from And to Or (the grid updates, filter event does NOT fire)
7. Click Filter button (filter event still does NOT fire)
I am using Telerik controls 2010.1.603.1030 in a Silverlight 3 project.
Thanks,
Brice Mason