DataFilter not filtering GridView - no event takes place

3 posts, 0 answers
  1. Alex
    Alex avatar
    23 posts
    Member since:
    Dec 2012

    Posted 26 Feb 2013 Link to this post

    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:

    <UserControl x:Class="ClientConflictSearch.MainPage"
        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:RadGridView x:Name="radGridView"
                                    ItemsSource="{Binding PagedSource, ElementName=radDataPager}"
                                    IsFilteringAllowed="False" Margin="0,5,0,0" Width="765" Height="440"
                            <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:RadDataPager x:Name="radDataPager"


    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()
                SearchServiceClient ssc = new SearchServiceClient();
                ssc.SearchListCompleted += new EventHandler<SearchListCompletedEventArgs>(ssc_SearchListCompleted);
            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?

  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 27 Feb 2013 Link to this post


    You have not connected the RadDataFilter's Source to the Items collection of the RadGridView. Please check this online demo for a reference on how to configure it properly. 

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Alex
    Alex avatar
    23 posts
    Member since:
    Dec 2012

    Posted 27 Feb 2013 Link to this post

    I don't understand the code in the demo:
    Source="{Binding Items, ElementName=radGridView}"
    because I do not have an 'Items' object. Is this native to Telerik? Can you please explain in more detail instead of pointing me to your demo? I tried to add this line of code to both the "RadDataFilter" and also the "RadDataPager". When I added it to the "RadDataFilter" nothing changed. When I added it to the "RadDataPager" it blew up with an error citing "infinite loop recursion".
Back to Top