Results 1 to 2 of 2

Thread: Selection in a Virtual Store

  1. #1
    Sencha Premium User
    Join Date
    Feb 2017
    Posts
    21

    Default Selection in a Virtual Store

    Hello,

    I'm using Extjs 6.5 modern toolkit.

    I have a grid with a virtual store, is multi selectable. When I add a listener 'itemtap' to control the selection like this:


    Code:
    listeners:{        itemtap: 'manageSelection'
    }
    .....
    manageSelection: function(view){
        var selected = view.getSelectable().getSelected().items;
        var count = selected.length;
        var deleteSelButton = Ext.ComponentQuery.query('[name=deleteSelButton]')[0];
        if(count==0){
            deleteSelButton.setDisabled(true);
        }else{
            deleteSelButton.setDisabled(false);
        }
    },
    The count is always to 0. If I change the virtual store to Ext.data.Store, the count work fine. Evidently I need a Virtual store to infinite records.

    I don´t know how to solve it, and I need it.

    Thanks a lot.

  2. #2
    Sencha Premium User
    Join Date
    Jan 2017
    Posts
    12

    Default

    I have the same problem.
    Is this a bug or a feature?

    A possible workaround is to override each line of code from
    PHP Code:
    this.getStore().isVirtualStore 'rows' 'records'
    to

    PHP Code:
    this.getStore().isVirtualStore 'records' 'records'
    Not the best idea but it works.

Similar Threads

  1. [FIXED] Exception in Virtual Store with small data amounts
    By JoraRst in forum Ext JS 6.x Bugs
    Replies: 1
    Last Post: 12 Jun 2017, 2:52 PM
  2. Update on the Virtual Store?
    By JoraRst in forum Sencha Ext JS Q&A
    Replies: 0
    Last Post: 11 Jun 2017, 1:34 PM
  3. Replies: 2
    Last Post: 19 Feb 2013, 6:57 AM
  4. [Solved] store url variable for virtual site
    By mohaaron in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 18 Jun 2009, 11:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •