Announcement

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

    ListGrid data operations do not update list if list grouped

    SmartGWT Nightly: 2011-09-19

    Issue: ListGrid data operations add/update/delete do not automatically update the list if grouped. InvalidateCache must be performed to update.
    Note: there is no problem with the data operation, just list does not reflect changes.

    Problem example seen on Showcase: http://www.smartclient.com/smartgwt/showcase/#grid_dataoperations_remove

    Simply group the list by some column and then remove rows.

    Is this a known issue? If so, beside clearing cache is there any other work around?

    #2
    Anyone know of a good work around for this, maybe sometimes like ungrouping updating and then re-grouping?

    However, more interested in know if this might be fixed in any upcoming build so I don't have to fuss with.

    Comment


      #3
      Have you tried SQL Template OperationBindings to do a cacheSyncOperation?

      In your DataSource *.ds.xml file, it would go something like:
      Code:
      <operationBindings>
      
        <operationBinding operationType="update" cacheSyncOperation="Bob">
        </operationBinding>
      
        <operationBinding operationType="fetch" operationId="Bob">
          <selectClause>[fields, including those that get Grouped]</selectClause>
          <tableClause>[table(s)]</tableClause>
          <whereClause>[condition that id's the records that need updates]</whereClause>
        </operationBinding>
      
      </operationBindings>
      This chains a fetch to get the stuff that is missing after an update.

      Hope this is useful info...

      Comment

      Working...
      X