flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark goldin <markzolo...@gmail.com>
Subject Re: disableAutoUpdate
Date Tue, 18 Oct 2016 15:57:37 GMT
Unfortunately, my sort is a column header click with a sortfunction.

On Tue, Oct 18, 2016 at 10:55 AM Clint M <cmodien@gmail.com> wrote:

> var ac:ArrayCollection = grid.dataProvider as ArrayCollection
> if(ac) {
>   ac.disableAutoUpdate();
>   ac.sort = new Sort();
>   ac.sort.fields = ["name"];
>   ac.refresh();
>   ac.enableAutoUpdate();
> }
>
> On Tue, Oct 18, 2016 at 8:47 AM, mark goldin <markzolotoy@gmail.com>
> wrote:
>
> > But how am I going to know that a sort is done and I can enable it?
> >
> > On Tue, Oct 18, 2016 at 10:42 AM Clint M <cmodien@gmail.com> wrote:
> >
> > > ya... with enableAutoUpdate()
> > >
> > > On Tue, Oct 18, 2016 at 8:36 AM, mark goldin <markzolotoy@gmail.com>
> > > wrote:
> > >
> > > > when I sort on some columns I
> > > > do ArrayCollection(gird.dataProvider).disableAutoUpdate();. Should I
> > at
> > > > some point enable it back?
> > > >
> > > > Thanks
> > > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message