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 flexcoders@yahoogroups.com, "tntomek" <tnto...@...> 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. >