This is a migrated thread and some comments may be shown as answers.

Filter doesnt show all objects

3 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tobias
Top achievements
Rank 1
Tobias asked on 25 Jul 2013, 05:01 PM

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!

3 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 26 Jul 2013, 05:32 AM
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 >>
0
Tobias
Top achievements
Rank 1
answered on 26 Jul 2013, 12:30 PM
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);
}
0
Rossen Hristov
Telerik team
answered on 26 Jul 2013, 02:08 PM
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 >>
Tags
GridView
Asked by
Tobias
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Tobias
Top achievements
Rank 1
Rossen Hristov
Telerik team
Share this question
or