Results 1 to 10 of 13

Thread: GridStateHandler is not working as expected in IE8

Threaded View

Previous Post Previous Post   Next Post Next Post
    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    17

    Default GridStateHandler is not working as expected in IE8

    Please help me to understand whether it is a bug on GXT3..1.1 and fixed later version ? Or what else could be the problem?. The problem is NOT producable in Chrome, Firefox and IE 11, but reproducable in IE8

    Here is the problem steps:

    1. Environment: GWT2.7 + GXT 3.1.1 + JDK6 + IE8 + Enable GWT logging in module file. (Note I have included the following IE meta tag in home page : <meta http-equiv="X-UA-Compatible" content="IE=edge"/>"

    2. Create a basic Grid as mentioned at http://www.sencha.com/examples/#ExamplePlace:basicgrid
    3. Do GWT compile and deploy it into any remote server
    4. Try accessing the application in IE8
    5. You will be able to see the Grid
    6. Focus on IE8 and press F12 for developer tools-> Go to Script/Console
    7. Now do sorting by clicking on column header
    8. You will be seeing json parser error on IE8 console and sorting/state management broken.

    Please download the required files from attachment.

    Here is the GridExample.java code code:
    Code:
    public class GridExample implements IsWidget, EntryPoint {
     
      private static Logger log = Logger.getLogger("GridExample");
      private static final StockProperties props = GWT.create(StockProperties.class);
     
      private ContentPanel panel;
     
      @Override
      public Widget asWidget() {
        if (panel == null) {
          ColumnConfig<Stock, String> nameCol = new ColumnConfig<Stock, String>(props.name(), 50, SafeHtmlUtils.fromTrustedString("<b>Company</b>"));
          ColumnConfig<Stock, String> symbolCol = new ColumnConfig<Stock, String>(props.symbol(), 100, "Symbol");
          ColumnConfig<Stock, Double> lastCol = new ColumnConfig<Stock, Double>(props.last(), 75, "Last");
          ColumnConfig<Stock, Date> lastTransCol = new ColumnConfig<Stock, Date>(props.lastTrans(), 100, "Last Updated");
     
          lastTransCol.setCell(new DateCell(DateTimeFormat.getFormat("MM/dd/yyyy")));
     
          List<ColumnConfig<Stock, ?>> columns = new ArrayList<ColumnConfig<Stock, ?>>();
          columns.add(nameCol);
          columns.add(symbolCol);
          columns.add(lastCol);
          columns.add(lastTransCol);
     
          ColumnModel<Stock> cm = new ColumnModel<Stock>(columns);
     
          ListStore<Stock> store = new ListStore<Stock>(props.key());
          store.addAll(TestData.getStocks());
     
          log.info("Creating Grid instance...");
          final Grid<Stock> grid = new Grid<Stock>(store, cm);
          grid.setAllowTextSelection(true);
          grid.getView().setAutoExpandColumn(nameCol);
          grid.getView().setStripeRows(true);
          grid.getView().setColumnLines(true);
          grid.setBorders(false);
          grid.setColumnReordering(true);
     
          // Stage manager, turn on state management
          log.info("Setting up grid state");
          grid.setStateful(true);
          grid.setStateId("gridExample");
     
          // Stage manager, load previous state
          log.info("Loading grid state");
          GridStateHandler<Stock> state = new GridStateHandler<Stock>(grid);
          state.loadState();
     
          ToolBar toolBar = new ToolBar();
          toolBar.setEnableOverflow(false);
       
          log.info("Attaching grid to panel");
          VerticalLayoutContainer con = new VerticalLayoutContainer();
          con.add(toolBar, new VerticalLayoutData(1, -1));
          con.add(grid, new VerticalLayoutData(1, 1));
     
          panel = new ContentPanel();
          panel.setHeadingText("Basic Grid");
          panel.setPixelSize(600, 300);
          panel.addStyleName("margin-10");
          panel.setWidget(con);
          
        }
     
        return panel;
      }
     
      @Override
      public void onModuleLoad() {
        // State manager, initialize the state options
        StateManager.get().setProvider(new CookieProvider("/", null, null, GXT.isSecure()));
     
        RootPanel.get().add(asWidget());
      }
    }

    Error from IE8 Console on column sorting/Hidden
    Thu Apr 23 13:28:42 GMT-700 2015 GridExample
    INFO: Creating Grid instance...
    Thu Apr 23 13:28:42 GMT-700 2015 GridExample
    INFO: Setting up grid state
    Thu Apr 23 13:28:42 GMT-700 2015 GridExample
    INFO: Loading grid state
    Thu Apr 23 13:28:42 GMT-700 2015 GridExample
    INFO: Attaching grid to panel
    Thu Apr 23 13:28:48 GMT-700 2015 com.google.gwt.logging.client.LogConfiguration
    SEVERE: Exception caught: Exception caught: Exception caught: Error parsing JSON: [object Error]
    ["ASC"]com.google.gwt.event.shared.UmbrellaException: Exception caught: Exception caught: Exception caught: Error parsing JSON: [object Error]
    ["ASC"]
    at Unknown.Vb(Unknown Source)
    at Unknown.Yb(Unknown Source)
    at Unknown.cc(Unknown Source)
    at Unknown.vk(Unknown Source)
    at Unknown.yk(Unknown Source)
    at Unknown.Yj(Unknown Source)
    at Unknown._V(Unknown Source)
    at Unknown.Heb(Unknown Source)
    at Unknown.ufb(Unknown Source)
    at Unknown.kC(Unknown Source)
    at Unknown.anonymous(Unknown Source)
    at Unknown.Lc(Unknown Source)
    at Unknown.Oc(Unknown Source)
    at Unknown.anonymous(Unknown Source)
    at Unknown.anonymous(Unknown Source)


    Thu Apr 23 13:29:25 GMT-700 2015 com.google.gwt.logging.client.LogConfiguration
    SEVERE: Exception caught: Exception caught: Error parsing JSON: [object Error]
    {"sortDir":"ASC","sortField":"symbol","hidden":["symbol"]}com.google.gwt.event.shared.UmbrellaException: Exception caught: Exception caught: Error parsing JSON: [object Error]
    {"sortDir":"ASC","sortField":"symbol","hidden":["symbol"]}
    at Unknown.Vb(Unknown Source)
    at Unknown.Yb(Unknown Source)
    at Unknown.cc(Unknown Source)
    at Unknown.vk(Unknown Source)
    at Unknown.yk(Unknown Source)
    at Unknown.Yj(Unknown Source)
    at Unknown._V(Unknown Source)
    at Unknown.tjb(Unknown Source)
    at Unknown.wjb(Unknown Source)
    at Unknown.$jb(Unknown Source)
    at Unknown.kC(Unknown Source)
    at Unknown.anonymous(Unknown Source)
    at Unknown.Lc(Unknown Source)
    at Unknown.Oc(Unknown Source)
    at Unknown.anonymous(Unknown Source)
    at Unknown.anonymous(Unknown Source)
    Caused by: com.google.gwt.event.shared.UmbrellaException: Exception caught: Error parsing JSON: [object Error]
    {"sortDir":"ASC","sortField":"symbol","hidden":["symbol"]}
    at Unknown.Vb(Unknown Source)
    at Unknown.Yb(Unknown Source)
    at Unknown.cc(Unknown Source)
    at Unknown.vk(Unknown Source)
    at Unknown.yk(Unknown Source)
    at Unknown.Yj(Unknown Source)
    at Unknown.Nfb(Unknown Source)
    at Unknown.fgb(Unknown Source)
    at Unknown.Obb(Unknown Source)
    at Unknown.Qbb(Unknown Source)
    at Unknown.ek(Unknown Source)
    at Unknown.Yj(Unknown Source)
    Attached Files Attached Files

Similar Threads

  1. Replies: 5
    Last Post: 27 Dec 2013, 9:03 AM
  2. [NOREPRO] NullPointerException using GridstateHandler(Grid<M> component)
    By Pasquien in forum Sencha GXT Bugs
    Replies: 6
    Last Post: 6 Nov 2013, 7:57 AM
  3. [FIXED] beforedrop not working as expected
    By matt-akiri in forum Ext:Bugs
    Replies: 14
    Last Post: 17 Jan 2012, 4:09 AM
  4. Is CompositeElementLite working as expected
    By gordon in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 28 Feb 2007, 8:54 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •