Announcement

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

    Sort cleared after editing a new row

    Hi Isomorphic,

    I am doing something similar to the following showcase example.

    https://www.smartclient.com/smartgwt...diting_new_row

    I noticed that if you set the sort and then add a new row, the sort is removed. This is the case whether the sort is set in the UI or with listgrid.setInitialSort.

    In my case, I'm not using a Data Source for the list grid and the data is set with listgrid.setData. Is there a way to prevent the sort from being cleared?

    Thanks

    #2
    Hi Stonebranch
    This is deliberate - if we leave the sort in place, when the user has finished their edit, the edited row will potentially jump to a new position in the grid - which may be scrolled out of view, which can be jarring.
    If you want to change this behavior we'd recommend re-sorting after the user is done editing (you could hook into editComplete, via addEditCompleteHandler(), for example)

    Regards
    Isomorphic Software

    Comment


      #3
      OK, thanks for the quick reply.

      Comment

      Working...
      X