|
|
Ken, thanks for the reply but I am having some issues with your code. I've
played with the [b]new Ext.PagingToolbar()[/b] code but all I can get it to do
is replace the add button completely. Also, the loading button never stops
loading. I first implemented your code as show below, but no luck. Temporarily
I added the add button to the Header Panel without an issue but I still would
like to try getting it to the Footer. I am going to continue to research but if
you have any idea where I am going wrong with implementing your code, let me
know. I appreciate the help!
function init(){
grid = ColdFusion.Grid.getGridObject("artists");
var gridFoot = grid.getView().getFooterPanel(true);
var gridHead = grid.getView().getHeaderPanel(true);
var bbar = new Ext.Toolbar(gridFoot);
bbar.addButton({
text:"Add",
cls:"x-btn-text-icon",
handler:doInsert
});
var paging = new Ext.PagingToolbar(gridFoot, ds, {
pageSize: pageSize,
displayInfo: true,
displayMsg: '',
emptyMsg: "No topics to display"
});
console.log(bbar);
console.log(Ext);
}
|
|