Virtualization with multiselection

4 posts, 0 answers
  1. jura
    jura avatar
    7 posts
    Member since:
    Feb 2007

    Posted 19 Aug 2015 Link to this post

    I am using VirtualQueryableCollectionView with RadGridView and at the same time multiselection mode.

    It was already discussed previously with no real solution as far as I know.

    When select all (Ctrl+A) is called, all items are loaded into memory which defeats the virtualization and is useless.

    So what are the possibilities to fix it?

    • Use single selection mode, which is not a solution.
    • Use indexes instead of items.
    • Use item identifiers if available instead of items.
    • Use proxied item objects with knowledge of loaded state and internally loadable when required, which is quite complex.
    • Limit ​maximum number of selected items to reasonable value (LoadSize) and add selection events based on indices.

    Just my thoughts. I think I will take the last way... and You?

     

    Marek Ištvánek

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 20 Aug 2015 Link to this post

    Hello Marek,

    We had such a request on the feedback portal, and the development team rejected it due to the stated reason: Cannot extended select all the items when GridView is bound to VirtualQueryableCollectionView.

    Regards,
    Dimitrina
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. jura
    jura avatar
    7 posts
    Member since:
    Feb 2007

    Posted 24 Aug 2015 Link to this post

    Well, that is not the reason for me ;-)

    The best solution I see now is to have SelectedIndexes and AllowSelectedItems on GridView so that when AllowSelectedItems is false, SelectedItems will be ignored and only SelectedIndexes will be updated.

    This is doable.

     

    Marek

  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 24 Aug 2015 Link to this post

    Hello,

    Thank you for sharing your solution with the community here and also updating the feedback item so that other clients can also benefit from it. 

    Regards,
    Dimitrina
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top