Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    128
    Vote Rating
    1
    Tod is on a distinguished road

      0  

    Default [OPEN-1382] clearGrouping deletes multiSortInfo

    [OPEN-1382] clearGrouping deletes multiSortInfo


    I have a GroupingStore that I define with multiSortInfo non-empty. Works fine and grid is properly multi-sorted. If I reload the store however, I lose my sorting. Looking into the details a bit, it appears that the multiSortInfo field is empty after a reload. Is that to be expected? Current workaround is to reset multiSortInfo after the reload and run the sort method. I am using Ext JS 3.2

    Thanks,
    -Tod

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    375
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    GroupingStore does not reset multiSortInfo by itself. Can you post your code of how you create and (re)load the store?
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  3. #3
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    128
    Vote Rating
    1
    Tod is on a distinguished road

      0  

    Default


    Thank you for the information. I traced the code and discovered that the call to clearGrouping() results in multiSortInfo being cleared! This is not what I would have expected -- I suppose it depends on your interpretation of 'default sort' -- to me, this would be the sort I configured the store to have when I created it. I want my store sorted using the multiSortInfo and on some occasions grouped using other criteria. I understand the mechanics of grouping: 'the grouping field and direction are always injected as the first sorter pair' -- it seems to me that if you clear the grouping, one would logically expect the grouping field and direction to be removed as the first sorter pair -- not for the entire multiSortInfo to be cleared.

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Correct. If you call sort() without parameters or with only a field and a direction (like clearGrouping() and groupOnSort:true do), GroupingStore will reinitialize multiSortInfo with:
    [{field: groupBy, direction: groupDir}, sortInfo]
    thereby discarding any multiSortInfo you have set.

    Should I move this thread to the Bugs section?

  5. #5
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    128
    Vote Rating
    1
    Tod is on a distinguished road

      0  

    Default


    Yes, please do. The title of the thread is also obviously quite wrong. There is no issue with reload -- this turned out to be the context in which I found the problem. The title should be "ClearGrouping deletes multiSortInfo" and this functionality could be changed (it seems like a bug to me), or the documentation for clearGrouping could be modified to make this outcome more apparent. Thanks!

Similar Threads

  1. need help with multiSortInfo..
    By Dumbledore in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 27 Jul 2010, 12:02 AM
  2. Replies: 1
    Last Post: 16 Jan 2010, 7:26 AM
  3. Grouping does not work after clearGrouping()
    By csky in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 8 Jan 2010, 8:14 PM

Thread Participants: 2

Tags for this Thread

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