how to get dataGrid columnIndex rollOver event in flex3
A:
You can add rollOver event handler to whole DataGrid or to each cell via itemRenderer, and after that check event.columnIndex
property.
Eugene
2010-09-20 00:06:04
on rollOver event hadler how will i get columnIndex property.
gokul
2010-09-20 05:32:54
because rollOver event is a MouseEvent... DataGridEvent,ListEvent handler has columnIndex property.
gokul
2010-09-20 05:35:50
Did you try to instance it? It should work 100% if you'll e.g. extend the DataGrid and place overrided handlers inside of your extended class.
Eugene
2010-09-20 06:08:51
Actuall i need to enable handCursor in my dataGridColumn(for only first column which has link to open popUp) on rollOverEvent.Earlier i did using itemRender .but when i use itemRender, dataGrid sort column property is not working for that column.how can i fix this issue..
gokul
2010-09-20 06:16:13
if i get the column index on rollOverEvent ,i can easily fix it.
gokul
2010-09-20 06:21:49
about sorting - you may override this function in your extended class. about columnIndex, could you please show me yr code, please?
Eugene
2010-09-20 06:31:08
<mx:DataGrid width="100%" draggableColumns="false" rollOver="showHandCursor(event);" rollOut="hideHandCursor(event);"> <mx:columns> <mx:DataGridColumn width="8" dataField="XXXX" color="blue" textDecoration="underline" headerText="AAAAA" itemRenderer="components.CustomToolTip"/> </mx:columns></mx:DataGrid>
gokul
2010-09-20 06:45:39