Results 1 to 2 of 2

Thread: Empty grid will not show new records.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Duluth, MN
    Posts
    151

    Default Empty grid will not show new records.

    If you start with an empty store and render a grid with it, adding records to the store will not update the grid view.

    Here is a fiddle with an example.
    https://fiddle.sencha.com/#fiddle/14k1

    If you remove the setTimeout and add the record inline (I.E. before the grid has a chance to render) then the record will show up. So if you have an empty grid with a button that adds a record the new record will not show up.

  2. #2
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Duluth, MN
    Posts
    151

    Default

    Found an override that will fix this issue.



    Ext.define("EmptyGridAdd", {
    override:'Ext.dataview.List',


    doRefresh:function(){
    this.callParent(arguments);


    this.onContainerResize(this.container, { height: this.container.element.getHeight() });


    }


    });?

Similar Threads

  1. Replies: 2
    Last Post: 27 Aug 2015, 6:14 AM
  2. Replies: 2
    Last Post: 19 Nov 2014, 1:13 AM
  3. Replies: 3
    Last Post: 11 Apr 2013, 1:43 PM
  4. How can I show the number of records in a GRID?
    By reyes_edward in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 13 Feb 2009, 1:27 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
  •