Announcement

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

    Drop record to listgrid header issue

    SmartClient Version: v8.3d_2012-11-18/LGPL Development Only (built 2012-11-18)
    2. browser(s) and version(s) involved

    There are error appear when I try to drag a record to header of the list grid ,

    Error :
    Code:
    16:36:21.312 [ERROR] [sampleproject3_1] 16:36:21.213:TMR1:WARN:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):get: invalid index -1
    com.smartgwt.client.core.JsObject$SGWT_WARN: 16:36:21.213:TMR1:WARN:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):get: invalid index -1
        at sun.reflect.GeneratedConstructorAccessor23.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
        at java.lang.Thread.run(Thread.java:662)
    Code:
    final ListGrid countryGrid = new ListGrid();
    		countryGrid.setWidth(500);
    		countryGrid.setHeight(224);
    		countryGrid.setShowAllRecords(true);
    		countryGrid.setShowFilterEditor(true);
    		countryGrid.setCanDragRecordsOut(true);
    		countryGrid.setCanReorderRecords(true);
    		countryGrid.setCanAcceptDroppedRecords(true);
    		countryGrid.setAutoFetchData(true);
    How can I prevent drop record to the header ? , I attach complete sample code .

    Regards
    Attached Files
    Last edited by deeb; 19 Nov 2012, 05:43.

    #2
    Is this a drag from within the Grid, or from another component outside the Grid?

    Comment


      #3
      The same result

      In both cases (within or from another component ) the same error , in this sample code if you drag a record from the listgrid to its header , the error will appear .

      Comment


        #4
        Also if I try to drag a record to the end of of the listgrid another error will also appear .

        Any help on that ?

        Comment


          #5
          We're looking into this. We'll let you know as soon as we have more info

          Thanks
          Isomorphic Software

          Comment


            #6
            Ok we've made a change to address the warning when dragging over a ListGrid header.
            The change will show up in the next nightly 3.1p and 4.0d builds.

            As an aside - these warnings are actually harmless in this case (should have no effect on the functioning of the application)

            Regards
            Isomorphic Software

            Comment


              #7
              Old issue solved , but still another one

              Thank you for your fast response;

              The issue with drop record to the Listgrid header solved as you said , but there are another error that appear when user try to drop record to the end of listgrid (after the last record ) , and here the error :

              Code:
              12:05:37.697 [ERROR] [sampleproject3_1] 12:05:37.672:MUP1:WARN:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):getRange(5, 6): start beyond end of rows, returning empty list
              com.smartgwt.client.core.JsObject$SGWT_WARN: 12:05:37.672:MUP1:WARN:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):getRange(5, 6): start beyond end of rows, returning empty list
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
                  at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
                  at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
                  at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167)
                  at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
                  at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
                  at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                  at java.lang.Thread.run(Thread.java:662)

              Comment


                #8
                As with the other case - this is actually safe to ignore - it's a superfluous warning rather than a bug that would have any user-visible impact.
                We've made a change to get rid of it which should be present in nightly builds going forward on the 3.1p and 4.0d branches

                Comment

                Working...
                X