Success! Looks like we've fixed this one. According to our records the fix was applied for EXTGWT-3135 in 3.1.
  1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    2
    Vote Rating
    0
    Ashwani_Sencha is on a distinguished road

      0  

    Default Sort indicator shows wrong data in column A after ungrouping column B

    Sort indicator shows wrong data in column A after ungrouping column B


    Hi All,

    I have used the sencha Grid wherein if i sort on a column A , the sort works fine.
    Now when I do a group by on Column B, the group by works fine.
    Now if i Ungroup column B , the sort indicator on column A is still active but the data is not consistent with the sort order indicated on column A.




    Code Snippet for reference :-
    <
    ui:withtype="com.sencha.gxt.widget.core.client.grid.ColumnModel"field="cm"></ui:with>
    <ui:withtype="com.sencha.gxt.data.shared.ListStore"field="store"></ui:with>
    <ui:withtype="com.sencha.gxt.widget.core.client.grid.GroupingView"field="view">
    <ui:attributesstripeRows="true"forceFit="true"columnLines="true"></ui:attributes>
    </ui:with>

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,770
    Vote Rating
    165
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Are you seeing the issue in ExtJS 4.2.1? If so, can you offer an inclusive test case that demonstrates the issue you're seeing?
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

    C
    heck out all of the 2013 SenchaCon presentations here:
    http://www.sencha.com/blog/senchacon...now-available/

  3. #3
    Sencha User
    Join Date
    May 2013
    Posts
    2
    Vote Rating
    0
    Ashwani_Sencha is on a distinguished road

      0  

    Default


    Hi Selemmon,

    I am using the Sencha Gwt library and not the ExtJs one...
    the issue can be simulated in the below Url.

    http://www.sencha.com/examples/#Exam...e:groupinggrid

  4. #4
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,645
    Vote Rating
    80
    Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  5. #5
    Sencha - GXT Dev Team
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    283
    Vote Rating
    9
    branflake2267 will become famous soon enough

      0  

    Default


    I've got a workaround to refresh sort after an ungroup:

    1. Add a subclass for GroupingView.
    Code:
    public class GroupingGridViewExt<M> extends GroupingView<M> {
        @Override
        public void groupBy(ColumnConfig<M, ?> column) {
          super.groupBy(column);
    
    
          if (column == null) {
            doLastSort();
          }
        }
    
    
        private void doLastSort() {
          StoreSortInfo<M> info = getSortState();
          if (info == null) {
            return;
          }
    
    
          ValueProvider<? super M, ?> vp = info.getValueProvider();
          if (vp == null) {
            return;
          }
    
    
          String p = vp.getPath();
          if (p == null) {
            return;
          }
    
    
          ColumnConfig<M, ?> config = cm.findColumnConfig(p);
          if (config == null) {
            return;
          }
    
    
          int index = cm.indexOf(config);
          if (index != -1) {
            updateSortIcon(index, info.getDirection());
          }
          doSort(index, info.getDirection());
        }
      }
    2. Implement the subclass like this:
    Code:
           final GroupingView<Stock> view = new GroupingGridViewExt<Stock>();
          view.setShowGroupedColumn(false);
          view.setForceFit(true);
    
    
          Grid<Stock> grid = new Grid<Stock>(store, cm);

  6. #6
    Sencha - GXT Dev Team
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    283
    Vote Rating
    9
    branflake2267 will become famous soon enough

      0  

    Default


    Just an update, the fix has gone into the 3.1 branch and will be available in the next release. Brandon

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar