Announcement

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

    Weird ListGrid behavior on resolution bigger than 1920x1080

    On fetchData call, it tries to fetch the data 2-3 times. First time is regular fetch with startRow: 0, endRow: 75. Second time it fetches with startRow: 48, endRow: 222. Sometimes it fetches data 3 times right after each other and shows data sets twice on the screen.

    You can test it by running sample project (using ServerCountryDS or CountryDS taken+modified from your showcase) or see it in attached Teamviewer recordings which show this behavior very well. Tested on resolution 2560x1600.


    This is the actual code which makes problems:
    Code:
    final ListGrid countryGrid = new ListGrid();
    countryGrid.setDataSource(ServerCountryDS.getInstance());
    countryGrid.setWidth100();
    countryGrid.setHeight100();
    countryGrid.setAutoFetchData(false);
    
    countryGrid.draw();
    countryGrid.fetchData();
    This works ok (fetchData before draw):
    Code:
    final ListGrid countryGrid = new ListGrid();
    countryGrid.setDataSource(ServerCountryDS.getInstance());
    countryGrid.setWidth100();
    countryGrid.setHeight100();
    countryGrid.setAutoFetchData(false);
    
    countryGrid.fetchData();
    countryGrid.draw();

    Teamviewer 7 recordings showing behavior of listgrid in Firefox
    using CountryDS (xml file):
    http://www.sendspace.com/file/ayfcgy

    using ServerCountryDS (rest datasource):
    http://www.sendspace.com/file/nwqm9d

    Sample project for eclipse
    http://www.sendspace.com/file/9g181p

    SmartClient Version: SC_SNAPSHOT-2011-12-05/LGPL Development Only (built 2011-12-05)

    Firefox 14.0.1 (Windows)

    #2
    Please try the latest patched build.

    Comment


      #3
      I`ve tried it with nightly build, but it still not works:

      Smart GWT LGPL Editon (3.0 2012-09-05 nightly)
      SmartClient Version: v8.2p_2012-09-05/LGPL Development Only (built 2012-09-05)
      eclipse project:
      http://www.sendspace.com/file/8wm612
      screen resolution 2560x1600

      Comment


        #4
        Can you clarify, you tried it in a nightly build *with the sample* or just with your own code?

        We can take a look at a problem in a sample or with a minimal test case, but we don't look at Eclipse projects (too many things could be wrong).

        Comment


          #5
          The attached eclipse project is minimal test case (or sample) where you can test it. I`ve tried it on this sample and also in our real project. Thank you.

          Comment


            #6
            Sorry, again, we don't look at Eclipse projects. They usually take a while to repair (hardcoded paths, different GWT versions, etc) and often the problem is due to some error in the project configuration rather than an actual framework bug.

            So you should just post Java or a .java file that can replicate the problem when placed into a standard project.

            Comment


              #7
              ok, here are only sample files:
              http://www.sendspace.com/file/jhy91y

              Comment


                #8
                Maybe that's an attempt at humor, but this led to an .exe.

                Please post a single .java file, and only add more files if absolutely necessary to demonstrate a problem.

                We'll wait to respond until we see such files.

                Comment


                  #9
                  You just click to download downloader. You should click to "Click here to start download from sendspace" to download smgwt-sample.rar. Nevermind I attached files to this message.
                  Attached Files

                  Comment


                    #10
                    This has been fixed and the fix will appear in tomorrow's 3.0p build. Thanks for the report.

                    Comment


                      #11
                      Thanx, it works now.

                      Comment

                      Working...
                      X