Tuesday, March 30, 2010

CF9 problems with Grid and...

This code no longer works in CF9

var grid = ColdFusion.Grid.getGridObject('maingrid');
?var gridHead = grid.getView().getHeaderPanel(true);
?var tbar = new Ext.Toolbar(gridHead);
?
?tbar.addButton({
?text:'Add Animated Image',
?icon:'images/image_add.png',
?cls:'x-btn-text-icon',
?tooltip:'Add',
?handler: function(){
?var record = grid.getSelections();
?%26lt;-- Do something --%26gt;
?}
?});

I just get an errorError:?grid.getView().getHeaderPanel is not a function

I've tried numerous alternatives looking through the documentation but I can't get the header of a cfgrid to display buttons anymore in CF9, works fine in CF8, can anyone help

No comments:

Post a Comment