Reputation: 6031
I have a simple DataGrid in Flex 3:
<mx:DataGrid width="{indexW - 20}" height="100%"
headerHeight="0" resizableColumns="false"
dataProvider="{itemsList}"
itemClick="itemKlik(event)"
dataTipFunction="displayTooltip">
<mx:columns>
<mx:DataGridColumn id="col1" dataField="title" showDataTips="true"/>
<mx:DataGridColumn id="col2" width="25" textAlign="left" dataField="index" showDataTips="true"/>
</mx:columns>
</mx:DataGrid>
I am displaying a tooltip with this function:
private function displayTooltip(item:Object):String{
var s:String = " ";
if (item != null){
s = s + item.title;
}
return s;
}
What I want to do is to 'force' my DataGrid to display ERROR TOOLTIPS with 'errorTipRight' option instead of displaying a regular tooltips.
Is there a simple way to accomplish this?
Thanks in advance!
Upvotes: 0
Views: 2600
Reputation: 2938
If you look at this link it might help you with what you are trying to do. In short you want to set the tooltip you created borderStyle property to "errorTipRight". If you want to add more styling, include it in a style definition.
The first example in the link should help you more.
Upvotes: 1