19 Jan 2011 10:03 AM #1
Remove Sort only from a stateful extjs grid
I am not sure if this would be a new feature request/have a workaround/or impossible to do. I have a stateful extjs grid (with the stateful property set to true). It has the ability to sort and move column positions.
I am running into an issue with clearing the sort order that I am running into. One of these grids has an order specific to a hidden column. If the user wishes to sort a "shown" column then it is next to impossible to clear just the "sort" child object of this stateful grid. I know that Ext.state.Manager has a clear property which will allow you to remove a value from the state manager. However, I have to clear the whole thing by using this - both sort and column children objects of this stateful grid with this method.
My question is there a work around to just remove the sort instead of the whole grid value? Also, should this be submitted as an enhancement request or is it impossible?
I can come up with a sample if anyone needs to see one. Thank you in advance
9 Nov 2011 5:20 AM #2
5 Jun 2013 1:57 AM #3
You add this function to the grid
var me = this,
state = me.callParent();
By DTT_11-1983 in forum Ext 2.x: Help & DiscussionReplies: 13Last Post: 23 May 2013, 12:33 PM
By Mahendru in forum Ext 3.x: Help & DiscussionReplies: 10Last Post: 5 Mar 2013, 11:04 PM
By kckc1234 in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 1 Apr 2009, 7:12 AM
By elfantasy in forum Ext 2.x: BugsReplies: 0Last Post: 26 Feb 2009, 2:09 AM
By mehdi_cit in forum Community DiscussionReplies: 14Last Post: 19 Nov 2007, 5:41 AM