[flexcoders] Datagrid Weirdness - Lose arrow key functionality

2008-06-27 Thread Barry
Hi,
Can anyone help me out here?
I have a datagrid which when using the up and down arrow keys changed
the selected index of the grid. All normal there.
However, when I add an itemRenderer to one of the dataGrid Columns, I
lose that functionality.

mx:DataGrid x=0 y=40 width=100% height=100% id=lisDG
dataProvider={model.contactObjects}  change=dataGridClick(event)
mx:columns
mx:DataGridColumn width=20 
itemRenderer=com.pbsmedia.ccAdmin.comps.StatusRenderer 
editable=false/
mx:DataGridColumn width=40 sortDescending=true 
sortable=true
sortCompareFunction=Sorts.compareRegDate headerText=Reg Date
labelFunction=Sorts.doRegDateLabel/
mx:DataGridColumn width=40 sortable=true
headerText=Associate dataField=ContactAssociate/
mx:DataGridColumn width=100 sortable=true 
headerText=Name
dataField=ContactName /
mx:DataGridColumn width=100 sortable=true 
headerText=Company
dataField=ContactCompanyName /
mx:DataGridColumn width=40 sortable=true
sortCompareFunction=Sorts.compareNextCall headerText=Next Call
labelFunction=doNextCallLabel/
/mx:columns
/mx:DataGrid


Any help much appreciated,
Barry



RE: [flexcoders] Datagrid Weirdness - Lose arrow key functionality

2008-06-27 Thread Alex Harui
If you renderer steals focus, DG arrows will stop working.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Barry
Sent: Friday, June 27, 2008 5:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid Weirdness - Lose arrow key functionality

 

Hi,
Can anyone help me out here?
I have a datagrid which when using the up and down arrow keys changed
the selected index of the grid. All normal there.
However, when I add an itemRenderer to one of the dataGrid Columns, I
lose that functionality.

mx:DataGrid x=0 y=40 width=100% height=100% id=lisDG
dataProvider={model.contactObjects} change=dataGridClick(event)
mx:columns
mx:DataGridColumn width=20 
itemRenderer=com.pbsmedia.ccAdmin.comps.StatusRenderer 
editable=false/
mx:DataGridColumn width=40 sortDescending=true sortable=true
sortCompareFunction=Sorts.compareRegDate headerText=Reg Date
labelFunction=Sorts.doRegDateLabel/
mx:DataGridColumn width=40 sortable=true
headerText=Associate dataField=ContactAssociate/
mx:DataGridColumn width=100 sortable=true headerText=Name
dataField=ContactName /
mx:DataGridColumn width=100 sortable=true headerText=Company
dataField=ContactCompanyName /
mx:DataGridColumn width=40 sortable=true
sortCompareFunction=Sorts.compareNextCall headerText=Next Call
labelFunction=doNextCallLabel/
/mx:columns
/mx:DataGrid

Any help much appreciated,
Barry