Results 1 to 2 of 2

Thread: PagingToolbar "Results 1 - 10 of 20" As Grid Title?

  1. #1

    Thumbs up PagingToolbar "Results 1 - 10 of 20" As Grid Title?

    Hi All

    I want to show the number of results as the title of a grid. The exact text I want to show it the same as displayMsg config option of Ext.PagingToolbar.

    I have a solution that works, but I am wondering if there is a better way?

    new Ext.PagingToolbar({
    pageSize: 25,
                        store: store,
                        displayInfo: true,
                        displayMsg: '<div id="bbarT">'+module.grid.pager+' {0} - {1} of {2}</div>',
                        emptyMsg: '<div id="bbarT">0 '+module.grid.pager+'</div>',
                        plugins: [filters],
                        listeners: {
                            change: function(e) {
                                var title = Ext.getDom('bbarT').innerHTML;
    Thank You

  2. #2
    Sencha User's Avatar
    Join Date
    Mar 2007
    DC Area =)


    setup a 'load' listener on the grid's data store to set the title accordingly.

Posting Permissions

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