Take the 2-minute tour ×

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..

share|improve this question
add comment

2 Answers

You might need to call Ext.grid.GridPanel.reconfigure(Ext.data.Store store, Ext.grid.ColumnModel colModel) for grid to use new columnmodel

share|improve this answer
thanx.. but dat is also not workin.. –  kapil Sep 6 '10 at 12:14
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 Sep 6 '10 at 12:26
this bug has been boderin me since morning.. –  kapil Sep 6 '10 at 12:26
add comment

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);
share|improve this answer
its ok i was able 2 solve the problem.. thanx neways.. –  kapil Sep 8 '10 at 5:27
you should post your answer here for people that would have the same issue –  SBUJOLD Sep 8 '10 at 13:32
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 Sep 21 '10 at 8:42
sencha.com/forum/… this site might help many of you.. –  kapil Sep 21 '10 at 8:54
add comment

Your Answer


