Grouping data provider has its own sort property that is separate from the base 
sort on your ArrayCollection, you will have to specify that in one of the group 
of grouping field properties

--- In [email protected], "invertedspear" <invertedsp...@...> wrote:
>
> The last argument in the function is the index of the column (0, which is the 
> first, I have also tried 1 and 2 just to see if I could get something to 
> happen. Sorting the dataprovider doesn't work with the grouping for some 
> reason. If I need more arguments in the dispatch event, which ones do I need?
> 
> --- In [email protected], "tntomek" <tntomek@> wrote:
> >
> > Nothing is happening because the event has no context of the column that 
> > was supposedly clicked, try adding more arguments into the createEvent 
> > method. 
> > 
> > Having said that, this is probably not the recommended way of 
> > programmaticaly invoking sort on the grid. Have a look around there we some 
> > threads about this a few days ago.
> > 
> > Ideally what you want to do is update the "sort" property on your 
> > dataProvider, this will dispatch events to the grid and it should draw 
> > itself correctly.
> >
>


Reply via email to