1. #1
    Sencha User
    Join Date
    Jan 2012
    Location
    Russia
    Posts
    10
    Vote Rating
    0
    Vadim Kolesnikov is on a distinguished road

      0  

    Default Unanswered: How to save last group field (GroupingView) after refresh browser page?

    Unanswered: How to save last group field (GroupingView) after refresh browser page?


    Hi all!
    The grouping column is hidden, if you refresh browser page then group rows is reset, but the grouping column will be hidden. Please, i need help.

    Before refresh:
    before_refresh.jpg

    After refresh:
    after_refresh.jpg

    Example: http://www.sencha.com/examples/#grouping
    You deleted row for "store.groupBy("industry");" and you will see this trouble ^
    How to save last group field (GroupingView) after refresh browser page or recover the hidden column?

    - GXT version: 2.2.5
    - Host mode / web mode / both: All
    - Browser and version: All
    - Operating System: Windows 7

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Location
    Russia
    Posts
    10
    Vote Rating
    0
    Vadim Kolesnikov is on a distinguished road

      0  

    Question


    I did the following:
    override methods (GroupingView):

    Code:
    private void onGroupByClick(MenuEvent me, int colIndex) {
       groupingStore.groupBy(cm.getDataIndex(colIndex));
       grid.getState().put("lastGroupField", getGroupField()); // write to grid state
    }
    Code:
        @Override
        protected String renderRows(int startRow, int endRow) {
          String groupField = getGroupField();
          boolean eg = groupField != null;
          if (!showGroupedColumn) {
              ...
              grid.getState().put("lastGroupField", groupField); // write to grid state 
          }
          return super.renderRows(startRow, endRow);
    }
    and add to grid listener:

    Code:
    grid.addListener(Events.Attach, new Listener<GridEvent<Post>>() {
    
              @Override
              public void handleEvent(GridEvent<Post> be) {
                     ...
                     Map<String, Object> state = grid.getState();
                     ...
                     if (state.containsKey("lastGroupField")) {
                            store.groupBy((String) grid.getState().get("lastGroupField"));
                     }
                     loader.load(config);
              }
            });
    How it is right? I don't know

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