Results 1 to 3 of 3

Thread: Change emptyMsg of a bottom toolbar ?

  1. #1
    Ext User ritesh.kapse's Avatar
    Join Date
    May 2008
    Location
    Pune, India
    Posts
    120
    Vote Rating
    0
      0  

    Thumbs up [Solved]Change emptyMsg of a bottom toolbar ?

    Hi all,

    I am having a grid which goes like this :-
    Code:
    {
            xtype:'grid',
            store: searchStore,
            id: sid, 
            region: "center",
          
            bbar: new Ext.PagingToolbar({
                pageSize: 25,
                store: searchStore,
                displayInfo: true,
                displayMsg: 'Jobs {0} - {1} of {2}',
                emptyMsg: "EMPTY MESSAGE"
            }),
    
            plugins: expander,
            header: false,
            title: 'Job Results',
            iconCls: 'icon-grid'
        }
    I am using the same store i.e. searchStore for 3 different grid managed in a tab panel. When I return to a grid after accessing other grid in other tab, It show the default "EMPTY MESSAGE" even if I haven't loaded this particular grid.

    I want to change this emptyMsg to ""

    Any suggestions ?

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    128
      0  

    Default

    Use:
    Code:
    grid.getBottomToolbar().displayEl.update('');
    or:
    Code:
    grid.getBottomToolbar().updateInfo();

  3. #3
    Ext User ritesh.kapse's Avatar
    Join Date
    May 2008
    Location
    Pune, India
    Posts
    120
    Vote Rating
    0
      0  

    Thumbs up Thanks :)

    Thanks Condor...
    grid.getBottomToolbar().displayEl.update('');

    worked !!!

Posting Permissions

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