This question is locked. New answers and comments are not allowed.
I have created a DataFilter and GridView, but when I enter info into my filter the grid does not update. It acts as if there is no connection or bond between the filter and the grid itself. For what it is worth, my DataPager does not page through the GridView either. I presume the same erroneous code (or missing code) is similar to both the DataFilter and the DataPager. Here is my code:
MainPage.xaml
MainPage.xaml.cs
Class file named "ConflictSearch.cs"
Why is my filter not filtering the GridView?
MainPage.xaml
<UserControl x:Class="ClientConflictSearch.MainPage" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:dataFilter="clr-namespace:Telerik.Windows.Controls.Data.DataFilter;assembly=Telerik.Windows.Controls.Data" mc:Ignorable="d" d:DesignHeight="600" d:DesignWidth="800" > <Grid x:Name="LayoutRoot" Background="White"> <StackPanel Height="580" Width="780" HorizontalAlignment="Left" Margin="5,5,0,0" Name="stackPanel1" VerticalAlignment="Top" Orientation="Vertical"> <telerik:RadDataFilter x:Name="radDataFilter" Height="100" ScrollViewer.VerticalScrollBarVisibility="Auto" Margin="1"> </telerik:RadDataFilter> <telerik:RadGridView x:Name="radGridView" ItemsSource="{Binding PagedSource, ElementName=radDataPager}" AutoGenerateColumns="False" IsFilteringAllowed="False" Margin="0,5,0,0" Width="765" Height="440" ScrollViewer.HorizontalScrollBarVisibility="Hidden" > <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding cName}" Width="450" Header="Client Name" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding cAtty}" Width="150" Header="Billing Attorney" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding cNum}" Width="150" Header="Client Number" /> </telerik:RadGridView.Columns> </telerik:RadGridView> <telerik:RadDataPager x:Name="radDataPager" Grid.Row="1" DisplayMode="All" PageSize="20" Margin="0,10,0,0"/> </StackPanel> </Grid></UserControl>MainPage.xaml.cs
using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Animation;using System.Windows.Shapes;using System.ServiceModel;using ClientConflictSearch.ConflictService;using Telerik.Windows.Data;namespace ClientConflictSearch{ public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); SearchServiceClient ssc = new SearchServiceClient(); ssc.SearchListCompleted += new EventHandler<SearchListCompletedEventArgs>(ssc_SearchListCompleted); ssc.SearchListAsync(); } void ssc_SearchListCompleted(object sender, SearchListCompletedEventArgs e) { radGridView.IsBusy = true; radGridView.ItemsSource = e.Result; radDataPager.Source = e.Result; radDataFilter.Source = e.Result; radGridView.IsBusy = false; this.radDataPager.Source = e.Result; } }}Class file named "ConflictSearch.cs"
public class ConflictSearch { public string cName { get; set; } public string cAtty { get; set; } public string cNum { get; set; } }Why is my filter not filtering the GridView?