Results 1 to 4 of 4

Thread: Why doesn't this grid display the emptyText string?

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    7
    Vote Rating
    0
      0  

    Post Unanswered: Why doesn't this grid display the emptyText string?

    I've been playing with this for several hours and can't figure out why the "emptyText" string isn't displayed in this grid. I'm using version 4.0.2a. Any ideas?

    Code:
        
        Ext.onReady( function() 
        {
            Ext.create( 'Ext.grid.Panel',
            {
                title: 'Test',
                stateId: 'panel',
                width: 500,
                height: 600,
                columnLines: true,
                autoScroll: true,
                layout: 'fit',
                viewConfig:
                {
                    deferEmptyText: false,
                    emptyText: 'Nothing to display in this grid'
                },
                store: Ext.create( 'Ext.data.JsonStore', 
                {
                    fields: [ 'col1', 'col2', 'col3' ],
                    data: [],
                }),
                columns:
                [
                    { header: 'Column 1', dataIndex: 'col1' },
                    { header: 'Column 2', dataIndex: 'col2', flex: 1 },
                    { header: 'Column 3', dataIndex: 'col3' }
                ],
                renderTo: Ext.getBody()
            });
        });
    Thanks,

    Steve

  2. #2
    Sencha User
    Join Date
    Sep 2011
    Posts
    7
    Vote Rating
    0
      0  

    Default

    Anyone have any ideas about this?

    Thanks

  3. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    390
      0  

    Default

    Testing using a similar example shows that this works with 4.0.6 but not 4.0.2. Sounds like 4.0.7 is going to be pushed to the whole community, not just subscribers, so I suspect the easiest fix will be upgrading once it's released.

    http://www.sencha.com/blog/ext-js-4-1-update/

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Posts
    7
    Vote Rating
    0
      0  

    Default

    Skirtle,

    Thanks for confirming it is an issue with 4.0.2. I searched the bug forum and the release notes for v4.0.4 - v4.0.6 (v4.0.3 release notes missing for some reason) and couldn't find anything relating to this issue. I look forward to the 4.0.7 release to see if a bunch of other issues I'm encountering have been fixed.

    Steve

Posting Permissions

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