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

How to tell if column is filtered or not

2 Answers 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Håkan
Top achievements
Rank 1
Håkan asked on 13 Oct 2011, 12:32 PM
Hi,

I need to know if a filter is applied on a column, how can I do that?

Actually I also need to know the original count and the filtered count to be able to display a text like:
"Showing 10 of 50 records"

I guess the DataGrid.Items will tell me how many filtered records it has.
But how will I get the total number (unfiltered count)?

- Regards,
Håkan

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 13 Oct 2011, 12:36 PM
Hello Håkan,

 Have you tried Items.TotalItemCount?

Best wishes,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Håkan
Top achievements
Rank 1
answered on 13 Oct 2011, 08:48 PM
Yes, that was it, thanks!

- Håkan
Tags
GridView
Asked by
Håkan
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Håkan
Top achievements
Rank 1
Share this question
or