flashm
June 15th, 2009, 11:13 AM
Hello
i was searching in about 2 days for solution, but i can't find.
When i add a function to dispatch Mouse clicks on my DataGrid component like this:
myDataGrid.addEventListener(MouseEvent.CLICK, selectRow, false, 0, true);selected rows (by mouse click) are not highlighted when i click once. but they highlights when i click twice. Maybe i'm not registering correctly the event ?
... and when i remove the event - evryting is work perfect.
here is the selectRow function
private function selectRow(e:MouseEvent):void {
if(e.target is CellRenderer) {
// do something
}
}
i was searching in about 2 days for solution, but i can't find.
When i add a function to dispatch Mouse clicks on my DataGrid component like this:
myDataGrid.addEventListener(MouseEvent.CLICK, selectRow, false, 0, true);selected rows (by mouse click) are not highlighted when i click once. but they highlights when i click twice. Maybe i'm not registering correctly the event ?
... and when i remove the event - evryting is work perfect.
here is the selectRow function
private function selectRow(e:MouseEvent):void {
if(e.target is CellRenderer) {
// do something
}
}