1. #1
    Ext User
    Join Date
    Nov 2010
    Posts
    2
    Vote Rating
    0
    jkozer26 is on a distinguished road

      0  

    Default Remove Sort only from a stateful extjs grid

    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.

    I have also tried brute force setting the state manager to a javascript object and removing just the sort and leaving the column order but this causes more issues and disables the sort permanently.

    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

  2. #2
    Sencha User
    Join Date
    Sep 2008
    Posts
    74
    Vote Rating
    2
    klodoma1 will become famous soon enough

      0  

    Default


    Hi,

    Did you got a solution for this?
    I am looking for a solution to remove the sort of a grid programatically.

    Regards, Andrei.
    Management means doing the things right,
    Leadership means doing the right things.

    www.interpid.eu, www.webdbadmin.com

  3. #3
    Touch Premium Member
    Join Date
    Sep 2011
    Posts
    47
    Vote Rating
    1
    ruslan.talpa is on a distinguished road

      0  

    Default


    You add this function to the grid

    PHP Code:
    getState: function(){
       var 
    me this,
         
    state me.callParent();
       
    delete state.sort;
       return 
    state;
    }, 

Similar Threads

  1. Help - How to remove sort field when reload grid
    By DTT_11-1983 in forum Ext 2.x: Help & Discussion
    Replies: 13
    Last Post: 23 May 2013, 12:33 PM
  2. Sortable Columns: Remove 'Sort Ascending,' 'Sort Descending' Options
    By Mahendru in forum Ext 3.x: Help & Discussion
    Replies: 10
    Last Post: 5 Mar 2013, 11:04 PM
  3. what does stateful EXTjs Attribute do?
    By kckc1234 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 1 Apr 2009, 7:12 AM
  4. Replies: 0
    Last Post: 26 Feb 2009, 2:09 AM
  5. Is Extjs stateful ?
    By mehdi_cit in forum Community Discussion
    Replies: 14
    Last Post: 19 Nov 2007, 5:41 AM

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi