Announcement

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

    Record cannot be cast to ListGridRecord - again in 3.1

    Hi Isomorphic.
    I have seen references to this problem in earlier versions of SmartGwt, but now it seems to have resurfaced in version 3.1.
    I am running SmartGwt 3.1 pro, latest patched build (2013-06-03).

    I have seen the problem in latest versions of both IE9 and Firefox.

    We have quite a few GwtRpc-based datasources for legacy reasons. These populate the response with an array of Record objects.
    When trying to run ListGrid.getSelectedRecords() or getRecords() on a listgrid backed by this datasource, smartgwt complains that Record cannot be cast to ListGridRecord.
    The error is thrown from ListGrid.convertToListGridRecordArray(JavaScriptObject nativeArray).
    I have tried to compose a minimal testcase which provokes the error.

    Regards
    Hans Petter Simonsen - Evry Norway
    Attached Files

    #2
    Records should be provided as ListGridRecord instances. This has always been the case, although the problems caused by this might have been more subtle in the past.

    Comment


      #3
      Thank you for your quick response.
      That is ok, just as long as we know. And I assume these ListGridRecords will be valid for other databound components as well, such as DynamicForm and TreeGrid.

      Comment

      Working...
      X