1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    120
    Answers
    3
    Vote Rating
    3
    clifficious is on a distinguished road

      0  

    Question Answered: Grid emptyText not displayed

    Answered: Grid emptyText not displayed


    Hi,

    I searched through the forums, but did not find a satisfying nor working solution for my problem. I have a class that extends 'Ext.grid.Panel'. Inside I set the 'emptyText' option. But it is not displayed. I'm currently using Ext 4.2. I also tried with 'deferEmptyText' without success. The store is definitely empty in the beginning.

    Code:
    Ext.define('My.app.MyRoutesGridPanel', {    
    extend: 'Ext.grid.Panel',
        alias: 'widget.myroutespanel',
        itemId: 'myroutespanel',
        
        store: Ext.getStore('My.app.MyRoutes'),
        
        viewConfig: {
            deferEmtpyText: false,
            emptyText: 'Text to display when empty.',
        },
        
        columns: [
                  {
                      text: 'name',
                      dataIndex: 'name',
                      flex: 55
                  },{
                      text: 'length [km]',
                      dataIndex: 'length',
                      flex: 25
                    }
                  ],
                  
        forceFit: true
    });
    Can anybody give me a hint?

    Thanks a lot!
    Cliff

  2. This is the reported bug in sencha. You can refer to http://www.sencha.com/forum/showthre...several-levels

  3. #2
    Sencha User
    Join Date
    Jun 2012
    Location
    India
    Posts
    50
    Answers
    4
    Vote Rating
    3
    girish.arjunagi is on a distinguished road

      1  

    Default


    This is the reported bug in sencha. You can refer to http://www.sencha.com/forum/showthre...several-levels

  4. #3
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,021
    Answers
    385
    Vote Rating
    183
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Thanks for the report!
    Looks like this issue is a bug in 4.2 and is reported for that version.

Thread Participants: 2

Tags for this Thread