dimanche 14 décembre 2014

Functionality to cfgrid

Hi,

This is the javascript code snippet


var bbar = Ext.DomHelper.overwrite(grid.bbar,{tag:'div',id:Ext.id()},true);

//Create new PaginToolbar and render it to bbar (grid footer)

gbbar = new Ext.PagingToolbar({renderTo:bbar,

store: grid.store,

pageSize: 10,

displayInfo: true,

displayMsg: '<b>Showing {0} - {1} out of {2} Transactions</b>',

emptyMsg: "<b>No Record</b>",

items:[

'-', {

pressed: false,

enableToggle:false,

tooltip:'Click here to View All Transaction Details',

text: 'View All',// The text that will show for the button in the bar

icon:'css/add.png',//Icon graphic

cls: 'x-btn-text-icon',//The ext class that will display the button with text/icon properly

handler: showWin// handler: showWin // should be replaced with your own function

}


]

});

}


This is snapshot of the page is given below


Untitled.jpg


Here , the 10th row is the total row so there r only 9 records. The displayMessage in the toolbar bar shows ”Showing 1-10 out of 35 transactions”. But the actual message required is “Showing 1-9 out of 35 transactions”. Hope you understood my query.


Thanks & Regards,


Pankaj Kumar M






Functionality to cfgrid

Aucun commentaire:

Enregistrer un commentaire