Filter doesnt show all objects

4 posts, 0 answers
  1. Tobias
    Tobias avatar
    7 posts
    Member since:
    Jul 2013

    Posted 25 Jul 2013 Link to this post

    Hello everyone,

    I have a large amount of objects which I want to filter. My problem is that if i use the filter it seems that many objects get lost. Maybe you should have a look at the picture to understand want I mean. Does anyone know how I could fix this?

    Thanks for your help!

  2. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 26 Jul 2013 Link to this post

    Hello Tobias,

    By design, the filtering control shows the first 1000 distinct values. You can control this behavior using DistinctValuesLoading event of RadGridView. Please follow Display All Distinct Values help article for more information.
     
    Regards,
    Yordanka
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. Tobias
    Tobias avatar
    7 posts
    Member since:
    Jul 2013

    Posted 26 Jul 2013 Link to this post

    Thank you for your answer.
    I used the code snippet and connected the DistinctValuesLoading event of RadGridView to the method. But the method doesn't get triggered. I have no idea why.
    <telerik:RadGridView x:Name="myRadGridView"
                             Margin="-1"
                             SelectionMode="Extended"
                             IsReadOnly="True"
                             IsFilteringAllowed="True"
                             ShowGroupPanel="False"
                             ItemsSource="{Binding GridSource}" Unloaded="Gridview_unload" Loaded="Gridview_load" DistinctValuesLoading="OnRadGridViewDistinctValuesLoading" />

    private void OnRadGridViewDistinctValuesLoading(object sender, Telerik.Windows.Controls.GridView.GridViewDistinctValuesLoadingEventArgs e)
    {
        e.ItemsSource = ((Telerik.Windows.Controls.RadGridView)sender).GetDistinctValues(e.Column, true, null);
    }
  4. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 26 Jul 2013 Link to this post

    Hi,

    It should trigger when you actually open the filtering popup. If that is not the case, please send us a small dummy repro-project which we can debug on our side. We tested this and the event is raised.

    Regards,
    Rossen Hristov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top