diff --git a/static/scripts/grid_2.js b/static/scripts/grid_2.js index 316607fd4119622be8756ba5fcb11210c49b957a..0ef2362cf0439484546d17ee4603d43bc0ce15d3 100755 --- a/static/scripts/grid_2.js +++ b/static/scripts/grid_2.js @@ -30,7 +30,7 @@ mainGrid = function(provider, response){ var cfg = response.result; // console.log("Grid Model"); -// console.dir(cfg); + console.dir(cfg); // instantiate the grid and the filter var grid = Ext.ComponentMgr.create(cfg); @@ -52,9 +52,13 @@ mainGrid = function(provider, response){ items: [grid.filter], width: 300, split: true, + buttons: [{text: 'reset', + ref: '../../resetButton'}], // expose at the panel level }], }); +// panel.resetButton.on('click', grid.filter.onReset); + // the viewport to hold the grid // using all space available in the browser var vp = new Ext.Viewport({