首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

Flex DataGrid中的DataGridColumn兑现Tooltip/Datatip

2012-10-28 
Flex DataGrid中的DataGridColumn实现Tooltip/DatatipI had the problem that I wanted to show text in a

Flex DataGrid中的DataGridColumn实现Tooltip/Datatip

I had the problem that I wanted to show text in a DataGrid column which could be far longer then the available space. It was not important that the text is visible all the time so a custom cellrenderer was not needed and the solution very simple.
Just define DataGridColumn like:

<mx:DataGridColumn headerText="Text" dataField="text" dataTipField="text" showDataTips="true" />

So you have to set the dataTipField to the property of the Object you render and set showDataTips true.

热点排行