Unfortunately, my sort is a column header click with a sortfunction. On Tue, Oct 18, 2016 at 10:55 AM Clint M <cmod...@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 <markzolo...@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 <cmod...@gmail.com> wrote: > > > > > ya... with enableAutoUpdate() > > > > > > On Tue, Oct 18, 2016 at 8:36 AM, mark goldin <markzolo...@gmail.com> > > > wrote: > > > > > > > when I sort on some columns I > > > > do ArrayCollection(gird.dataProvider).disableAutoUpdate();. Should I > > at > > > > some point enable it back? > > > > > > > > Thanks > > > > > > > > > >