Archive

Archive for June, 2010

Edit manually a cell in an AdvancedDataGrid

June 17, 2010 2 comments

First set the edited position :

grid.editedItemPosition = { rowIndex: ,
columnIndex: };

then you have to wait for the grid to set this cell as edited position , for that your put an event handled on the updateComplete :


grid.addEventListener(FlexEvent.UPDATE_COMPLETE,onInvalidated);

Once the grid is updated, then :


private function onInvalidated(event:FlexEvent): void
{
grid.removeEventListener(FlexEvent.UPDATE_COMPLETE,onInvalidated);

// then you create and itemEditor so you can edit directly the cell
grid.createItemEditor(grid.getColNum(columnName),grid.selectedIndex );

// now in grid.itemEditorInstance you have you editor
// and here you can do things like TextInput(grid.itemEditorInstance).text = "blablabla"

if (grid.itemEditorInstance is IInvalidating)
IInvalidating(grid.itemEditorInstance).validateNow();

}

Categories: Uncategorized

Flex 3 Profiler / IE-Firefox-Chrome-Opera

June 9, 2010 Leave a comment

I am profiling those days a big application written in FLEX.

So far, i got problems with IE & Firefox, but it worked perfectly with Chrome and Opera.
The best is to not activate the stack trace allocation thing at the beggining otherwise it will freeze you application.

Categories: Uncategorized