Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  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