Announcement

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

    getSelectedRecords() issue

    I use getSelectedRecords() from a ListGrid. The data source is updated with addData, updateData, and removeData.

    During the changes getSelectedRecords() returns empty list although the UI has a selection there.

    It happens intermittently.

    I am using SmartGWT 4.1 power edition.

    #2
    The only way we can imagine this happening is if you we're doing something like calling invalidateCache() periodically in order to refresh data, and you happened to call getSelectedRecords() while new data was being fetched from the server.

    Other than that, we would need a way to reproduce the problem.

    Comment


      #3
      I only call the following APIs:
      addData, updateData, and removeData.

      Comment


        #4
        Well, we don't have further speculations, and we have many, many autotests that rely on this method operating properly. So we will need a minimal, ready-to-run test case demonstrating the issue in order to look further.

        Comment


          #5
          getSelectedRecords() same issue

          Hey,

          I think I am getting the same issue.
          SmartClient version: v9.0_2013-07-03/LGPL Development Only (built 2013-07-03)
          My browser is Firefox 26.0

          Calling getSelectedRecords() on SelectItem after updating it's data returns empty list however there are selected records.

          The weird thing is that: calling getSelectedRecord() *without s* before getSelectedRecords() cause getSelectedRecords() to return the selected records correctly!

          Comment


            #6
            Let us know if you can provide test code that reproduces this issue.

            Comment

            Working...
            X