From 57329956399ef865256e98227432a4be1c1f4795 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 29 Mar 2012 10:03:42 -0400 Subject: [PATCH] AutoGrid reloads structure after columnHelpers loads Otherwise, the newly added columns are not recognized by the grid (unless you happen to have the column picker enabled). Signed-off-by: Bill Erickson --- Open-ILS/web/js/dojo/openils/widget/AutoGrid.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index f101585c6a..b2aae238b6 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -45,8 +45,9 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { this.inherited(arguments); this.initAutoEnv(); - this.attr('structure', this._compileStructure()); + this.setStructure(this._compileStructure()); this._startupGridHelperColumns(); + this.setStructure(this.structure); // required after _startupGridHelper() this.setStore(this.buildAutoStore()); this.cachedQueryOpts = {}; -- 2.11.0