View Full Version : [SOLVED]Dynamic ColumnHeaderGroup using JSON

29 Dec 2009, 8:36 AM
After reviewing the ColumnHeaderGroup example, is it possible to "reconfigure" the columnHeader groups dynamically using JSON returned from server?

I currently have a grid in an application which presents different views by reconfiguring its columns, wanted to know if I can do the same with ColumnHeaderGroups.

30 Dec 2009, 3:57 AM
You could try:

colModel.rows = metaData.rows;

31 Dec 2009, 5:37 AM
Ok, and how to set the rows for the columnHeaderGroup dynamically? Used as a plugin, I can set the ColumnHeaderGroup rows as (from the ExtJS ColumnHeaderGroup example):

var group = new Ext.ux.grid.ColumnHeaderGroup({
rows: [continentGroupRow, cityGroupRow]

then the grid is instantiated with the plugin:

var grid = new Ext.grid.GridPanel({
plugins: group

How can I change the column header rows later from the meta data after the grid has been instantiated?

1 Jan 2010, 7:39 AM
Got it, thanks!
Didn't realize that colModel.setConfig() reconfigures the GroupHeaders also.

2 Jun 2010, 1:13 AM
Hi can you help me more on this topic