i've made a grid dat can append columns in it dynamically.. the static columns in the grid dont lose their ability to sort in asc or desc order.. but for the dynamically added columns the sort ascending and sort descending optio is not workin.. Need help.. Thanx in advance..
A:
You might need to call Ext.grid.GridPanel.reconfigure(Ext.data.Store store, Ext.grid.ColumnModel colModel)
for grid to use new columnmodel
Mchl
2010-09-06 11:46:55
thanx.. but dat is also not workin..
kapil
2010-09-06 12:14:10
This is what i wrote in my code wenever the store's onload method is called the following gets executed..--> "this.EditorGrid.reconfigure(this.EditorStore, this.EditorColumn);"
kapil
2010-09-06 12:26:24
this bug has been boderin me since morning..
kapil
2010-09-06 12:26:53
A:
how do you add the column in your grid ? You should post some code.
However, I have used this extension before and got it to work http://www.sencha.com/forum/showthread.php?53009-Adding-removing-fields-and-columns
With this extension in place I was able to do something like this:
grid.addColumn({name:'newstdtimes'}, {header: localizedStrings.newStd, id:'newstdtimes', width: 145, sortable: true, xtype: "numbercolumn", dataIndex: 'newstdtimes'},2);
SBUJOLD
2010-09-07 19:10:55
you should post your answer here for people that would have the same issue
SBUJOLD
2010-09-08 13:32:47
its not like my code is workin.. i delete my old store and make a new one every time.. d problem is still der so if ne1 finds a solution please help me..
kapil
2010-09-21 08:42:55
http://www.sencha.com/forum/showthread.php?53009-Adding-removing-fields-and-columns this site might help many of you..
kapil
2010-09-21 08:54:54