Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #16
    The fix that resolved the 3.1 issue was definitely applied to 4.0. It's likely this issue is new, or it could be actual bad usage on your part (something like asking for the index of a null Record).

    We'd need a way to reproduce the problem to comment further. If it seems to be related to your hovers, try adding similar settings to one of the samples and see if you can get the warning to appear; we can then look at that code.

    Comment


      #17
      This code manifests the problem in my environment. When I hover just under the last line of data in the grid, I get: [ERROR] [wgrid] - 09:08:30.523:TMR3:WARN:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):get: invalid index -2

      Would appreciate if you could take a look. Thanks.

      Wgrid.java:
      Code:
      package wgrid.client;
      
      import com.google.gwt.core.client.EntryPoint;
      import com.smartgwt.client.data.DataSource;
      import com.smartgwt.client.data.DataSourceField;
      import com.smartgwt.client.data.Record;
      import com.smartgwt.client.types.FieldType;
      import com.smartgwt.client.widgets.HTMLFlow;
      import com.smartgwt.client.widgets.grid.ListGrid;
      import com.smartgwt.client.widgets.layout.VStack;
      
      public class Wgrid implements EntryPoint
      {
          public void onModuleLoad()
          {
              ListGrid grid = new ListGrid();
              grid.setHeight(150); // adds white space below
      
              DataSource source = new DataSource();
              source.setClientOnly(true);
       		DataSourceField[] dsFields = new DataSourceField[2];
       		dsFields[0] = new DataSourceField("One", FieldType.TEXT);
       		dsFields[1] = new DataSourceField("Two", FieldType.TEXT);
       		source.setFields(dsFields);   
              source.getFields()[0].setPrimaryKey(true);
      
       		grid.setDataSource(source);
       		for (int i=0 ; i<3; i++) {
                  Record rec = new com.smartgwt.client.data.Record();
                  rec.setAttribute("One",Integer.toString(i));
                  rec.setAttribute("Two",Integer.toString(i));
      	        source.addData(rec);
       		}
       		grid.fetchData();
       		
              VStack vstack = new VStack();
              vstack.addMember(grid);
              vstack.addMember(new HTMLFlow("<hr/>"));
              vstack.draw();
          }
      }

      Comment


        #18
        This appears to have been a regression in the 4.0p / 9.0p branch only. We've made a change to fix this.
        Please try the next nightly build dated Feb 1 or above

        Regards
        Isomorphic Software

        Comment


          #19
          Works great now. Tested on the Feb 7th nightly. Thanks very much.

          Comment

          Working...
          X