1. #1
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    42
    Answers
    1
    Vote Rating
    3
    rajindarr is on a distinguished road

      0  

    Default Unanswered: How to Remove the custom sorters applied on grid columns on grid reload?

    Unanswered: How to Remove the custom sorters applied on grid columns on grid reload?


    On grid reload, how to remove the custom sorters applied on grid columns ? we tried to remove the store sorters on grid render(bad practice).

    I hope there is already a solution provided in ext js new versions, to remove the sort icons on grid columns when it is reopened/reloaded.

  2. #2
    Sencha User existdissolve's Avatar
    Join Date
    Jan 2010
    Location
    Kansas
    Posts
    522
    Answers
    31
    Vote Rating
    85
    existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice

      0  

    Default


    Does this work for you?

    PHP Code:
    grid.getStore().sorters.clear();
    grid.getView().refresh(); 
    Here's a live example of it: http://jsfiddle.net/existdissolve/vVSWT/

  3. #3
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    42
    Answers
    1
    Vote Rating
    3
    rajindarr is on a distinguished road

      0  

    Default


    in my case when reloading the grid, the grid view is not refreshing . if we removed the sorters on grid reload grid will be loosing the sorters defined in store right?

  4. #4
    Sencha User existdissolve's Avatar
    Join Date
    Jan 2010
    Location
    Kansas
    Posts
    522
    Answers
    31
    Vote Rating
    85
    existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice

      0  

    Default


    Yeah, I believe if the store still retains the sort, the grid will inherit the current sorting state of the store, since the sorting on the grid is driven by the store.

    So, if you reload the grid, you could add a listener to the render event and clear the bound store's sorters at that point:

    PHP Code:
    mygrid.on'render',function( gridopts ) {
        
    grid.getStore().sorters.clear();
    }) 

Thread Participants: 1

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