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

[Solved] Filteriing: How can I increase the number of items displayed in the control?

4 Answers 140 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael Maddux
Top achievements
Rank 1
Michael Maddux asked on 30 Aug 2010, 07:36 PM
Hello!

When our users click the filter icon on a grid view, they are not always shown choices for all of the rows in the grid.  There seems to be a limit of 1000 items displayed, so it becomes a problem when there are more than 1000 rows in the grid..  The users would like to be able to access ALL of the items for that column.  Is this possible?

Thanks,

Mike Maddux

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 31 Aug 2010, 07:01 AM
Hello,

 You can use DistinctValuesLoading event to assign desired values. Please check this blog post for more info. 

All the best,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Michael Maddux
Top achievements
Rank 1
answered on 31 Aug 2010, 07:13 PM
Thanks very much for your very quick response!

I was hoping that there would simply be a way of telling the grid to increase the maximum number of values in the filter display.  There isn't? 

I don't have any special values that I want to display - just all of the distinct values in the column.  It seems to me that the grid should be able to take care of this.  After all, it does this very well as long as the number of distinct values is not greater than 1000.  Why should it stop at 1000?

I tried using the example in the blog post that you refer to.  When I use AddRange on the ItemsSource parameter, the ItemsSource ends up with 1782 distinct values.  This is the correct value for the column that I am addressing.

The only problem is that the filter control still only displays 1000 values, so I'm right back where i started - no change in behavior.  The user doesn't see all of the values that are in the column.

Thanks,

Mike
0
Vlad
Telerik team
answered on 01 Sep 2010, 07:29 AM
Hello,

I've attached an example project to illustrate you how to achieve your goal. 

Regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Michael Maddux
Top achievements
Rank 1
answered on 07 Sep 2010, 06:16 PM
That worked...thanks!
Tags
GridView
Asked by
Michael Maddux
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Michael Maddux
Top achievements
Rank 1
Share this question
or