Flex DataGrid中的DataGridColumn实现Tooltip/Datatip(flex3)

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.


你可能感兴趣的:(object,datagrid,Flex)