Re: disableAutoUpdate

2016-10-18 Thread mark goldin
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"];

Re: disableAutoUpdate

2016-10-18 Thread Clint M
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

Re: disableAutoUpdate

2016-10-18 Thread mark goldin
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

Re: disableAutoUpdate

2016-10-18 Thread Clint M
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 >