1 Reply Latest reply on Nov 17, 2008 1:04 PM by Newsgroup_User

    Datagrid auomatich refresh

    makingchoices
      hi,

      I have an AIR application with a datagrid that is populated using a RemoteObject. Everything works fine. I would like to automatically refresh the datagrid every x minutes using a timer. This also works, but on every refresh, the grid is flickering and the vertical scroll-position is lost.

      Is there a standard way of doing this?

      regards,
      Peter
        • 1. Re: Datagrid auomatich refresh
          Level 7

          "makingchoices" <webforumsuser@macromedia.com> wrote in message
          news:gfskdd$id3$1@forums.macromedia.com...
          > hi,
          >
          > I have an AIR application with a datagrid that is populated using a
          > RemoteObject. Everything works fine. I would like to automatically refresh
          > the
          > datagrid every x minutes using a timer. This also works, but on every
          > refresh,
          > the grid is flickering and the vertical scroll-position is lost.
          >
          > Is there a standard way of doing this?

          Instead of refreshing the whole collection, just call itemUpdated for the
          items that change.