Results 1 to 3 of 3

Thread: [6.x & 7.0] Remove store item from Modern DataView don't sync EmptyTextCmp's visiblit

  1. #1

    Default [6.x & 7.0] Remove store item from Modern DataView don't sync EmptyTextCmp's visiblit

    Fiddle:
    https://fiddle.sencha.com/#view/editor&fiddle/2v92


    Click "Remove Item" several times util the dataview is empty, the emptyText component is still hidden.

    Workaround:
    Uncomment the override at the top of the code, then run the fiddle and try again.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449

    Default

    Yep, Ext.dataview.DataView needs to have a this.callParent call in that method. To simulate this, I used this.callSuper in the override to jump to DataView's superclass like you were:

    Code:
    Ext.define(null, {
        override: 'Ext.dataview.DataView',
    
        onStoreRemove: function (store, records, index) {
            this.callParent([store, records, index]);
            this.callSuper([store, records, index]);
        }
    });
    I'll send in a request to get a bug opened.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449

    Default

    This was logged as EXTJS-28664
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

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