Filter by checked items

4 posts, 0 answers
  1. Javier Gonzalez de Aragon
    Javier Gonzalez de Aragon avatar
    35 posts
    Member since:
    Mar 2010

    Posted 04 Sep 2013 Link to this post

    Hi, is it possible to filter the items of a ListView by its CheckedState status?

    Thanks,

    Javier
  2. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 09 Sep 2013 Link to this post

    Hello Javier,

    Thank you for writing.

    The filtering functionality works only with the data bound object fields, hence you cannot filter the items according to their CheckState, unless the items have a field which corresponds to this state.

    If you are using unbound mode, at the moment you decide to filter by checked items, you can simply get the CheckedItems in a separate list, clear the control and populate it with the items from the saved list. 

    I hope that you find this information useful.
     

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    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. UI for WinForms is Visual Studio 2017 Ready
  4. Javier Gonzalez de Aragon
    Javier Gonzalez de Aragon avatar
    35 posts
    Member since:
    Mar 2010

    Posted 09 Sep 2013 Link to this post

    Thanks for the the reply. I created a column to store a boolean value that is updated according to CheckState and then filter by that column.

    Javier
  5. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 12 Sep 2013 Link to this post

    Hi,

    I am glad to hear that you have this sorted. Let us know if you have any other questions.
     
    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    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