Announcement

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

    ListGrid filter strange behaviour

    Hi,

    I experienced some strange behaviour of ListGrid when using following combination of properties.

    ListGrid dataGrid = new ListGrid();
    dataGrid.setGroupByField("field1");
    dataGrid.setGroupStartOpen(GroupStartOpen.ALL);
    dataGrid.setAutoFetchData(true);
    dataGrid.setShowFilterEditor(true);
    dataGrid.setFilterOnKeypress(true);
    DataSource ds = DataSource.get("DataSource_Test");
    ds.setWillHandleAdvancedCriteria(true);
    dataGrid.setDataSource(ds);
    dataGrid.draw();

    First problem is entering text to filter. After each keypress the filter is applied to data but previously entered text is selected. This means, that you can't enter whole word because after each few keypreses previously entered text is rewritten.

    Second problem is when I use date filter. After entering date to filter, listGrid starts infinite refreshing.

    I experienced this problems only if I use grouping in combination with filterOnKeypress=true. (IE9 and Chorme)
    FF4 with no problem.

    #2
    Here again, can you indicate a sample where this can be reproduced? You've also omitted all required details about versions, etc. There's no point in posting until you gather this information - you will just be asked for it.

    Comment


      #3
      Originally posted by Isomorphic
      Here again, can you indicate a sample where this can be reproduced? You've also omitted all required details about versions, etc. There's no point in posting until you gather this information - you will just be asked for it.
      Here you can use also any datasource and previosly posted listgrid properties to reproduce this behaviour.

      I use the lastest nigtly build of smartgwt pro 2.5

      Comment


        #4
        It may seem that the problem is trivially reproducible with those settings, in reality, more often than not it comes down to the implementation of your DataSource, project-specific settings, custom event handlers or some other problem. For this reason we always ask you to verify the problem in a standard environment. This goes for your other thread too.

        Comment


          #5
          Originally posted by Isomorphic
          It may seem that the problem is trivially reproducible with those settings, in reality, more often than not it comes down to the implementation of your DataSource, project-specific settings, custom event handlers or some other problem. For this reason we always ask you to verify the problem in a standard environment. This goes for your other thread too.
          Ok...

          Here is the test case. It's based on sample from your showcase.

          how to reproduce first problem:
          1. Type "Norway" to filter above "Country" column
          1.1. (filter is applied, listgrid is refreshed)
          2. Delete "Norway" from filter above "Country" column
          3. All groups except "Norway" are closed

          how to reproduce second problem:
          1. Click on calendar icon in filter above "Nationhood" column
          2. Choose any date - for example "From: Yesterday" and click "OK"
          3. Listgrid starts infinite refreshing and selected date in filter is blinking

          I experience this problem in IE9 and Chrome10, FF4 seems to be ok.

          how to reproduce third problem:
          1. Type one character to any filter field
          2. After applying filter, the written character is selected (so if you are writing slowly, all previously typed characters will be rewritten)

          I experience this problem in IE9 and Chrome10, FF4 seems to be ok.

          I use smartgwt pro 2.5 nb from 30.7.2011
          Attached Files

          Comment


            #6
            Originally posted by jchajdiak
            Ok...

            Here is the test case. It's based on sample from your showcase.

            how to reproduce first problem:
            1. Type "Norway" to filter above "Country" column
            1.1. (filter is applied, listgrid is refreshed)
            2. Delete "Norway" from filter above "Country" column
            3. All groups except "Norway" are closed

            how to reproduce second problem:
            1. Click on calendar icon in filter above "Nationhood" column
            2. Choose any date - for example "From: Yesterday" and click "OK"
            3. Listgrid starts infinite refreshing and selected date in filter is blinking

            I experience this problem in IE9 and Chrome10, FF4 seems to be ok.

            how to reproduce third problem:
            1. Type one character to any filter field
            2. After applying filter, the written character is selected (so if you are writing slowly, all previously typed characters will be rewritten)

            I experience this problem in IE9 and Chrome10, FF4 seems to be ok.

            I use smartgwt pro 2.5 nb from 30.7.2011

            hi,
            did you reproduced my problems ? what is status ?

            Comment


              #7
              Issue #2 is resolved - you can see the fix in the latest nightly build under the 2.x branch (http://www.smartclient.com/builds/SmartGWT/2.x/)

              We're investigating the other two issues and will let you know when we have more information

              Thanks
              Isomorphic Software

              Comment


                #8
                Originally posted by Isomorphic
                Issue #2 is resolved - you can see the fix in the latest nightly build under the 2.x branch (http://www.smartclient.com/builds/SmartGWT/2.x/)

                We're investigating the other two issues and will let you know when we have more information

                Thanks
                Isomorphic Software
                hello,
                what is status about issues reported above ?

                Comment


                  #9
                  Sorry for the long silence. Status is:
                  Issue #1 should already be resolved in the latest nightly (2.5 branch) builds.
                  Issue #3 will be resolved in the next nightly (2.5 branch) build.

                  Please let us know if you continue to see them

                  Regards
                  Isomorphic Software

                  Comment

                  Working...
                  X