Announcement

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

    Save and disappearing ListGrid rows

    Hi,

    I have the following scenario :

    1) A ListGrid bound to a DataSource (JSON fed, using data paging/scrolling, etc)

    2) I double click a record from the ListGrid which brings up an edit box (DynamicForm based)

    3) The edit box uses a DynamicForm bound to a ValuesManager bound to the same DataSource
    as the ListGrid. The ValuesManager gets fed the selected record from the ListGrid.

    4) The user edits the data and saves it. I end up calling ValuesManager.saveData().

    5) When the user returns to the underlying ListGrid (closing the top DynamicForm), that row
    has gone away from the ListGrid ... The user needs to reload the list for the record to appear again.

    Any idea why this is happening ? I tried putting together a reproducible test bed, but haven't
    been able to isolate/reproduce this outside my full blown application ... I'm suspecting it's related
    to my DataSource but I'm not sure.

    Any idea ?

    Thanks,

    #2
    Take a look at the FAQ in the SmartGWT forum for grids not updating properly - the troubleshooting steps there apply to SmartClient as well.

    What's likely happening is that the updated data from the server makes the row no longer match the criteria that are applied to the grid.

    Comment


      #3
      You nailed it. I did have a criteria value that did not match the updated record.

      Thanks for the pointer,

      Comment

      Working...
      X