Unfortunately, my sort is a column header click with a sortfunction.
On Tue, Oct 18, 2016 at 10:55 AM Clint M wrote:
> var ac:ArrayCollection = grid.dataProvider as ArrayCollection
> if(ac) {
> ac.disableAutoUpdate();
> ac.sort = new Sort();
> ac.sort.fields = ["name"];
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 wrote:
> But how am I going to
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 wrote:
> ya... with enableAutoUpdate()
>
> On Tue, Oct 18, 2016 at 8:36 AM, mark goldin
> wrote:
>
> > when I sort on some columns I
> > do
ya... with enableAutoUpdate()
On Tue, Oct 18, 2016 at 8:36 AM, mark goldin wrote:
> when I sort on some columns I
> do ArrayCollection(gird.dataProvider).disableAutoUpdate();. Should I at
> some point enable it back?
>
> Thanks
>