How to tell if column is filtered or not

3 posts, 1 answers
  1. Håkan
    Håkan avatar
    183 posts
    Member since:
    May 2011

    Posted 13 Oct 2011 Link to this post

    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. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 13 Oct 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Håkan
    Håkan avatar
    183 posts
    Member since:
    May 2011

    Posted 13 Oct 2011 Link to this post

    Yes, that was it, thanks!

    - Håkan
Back to Top