Link to home
Get AccessLog in
Avatar of coldchillin
coldchillin

asked on

DataGrid toolTip NOT headerText

I'm trying to display a custom toolTip which is different from the headerText:

ID   Item
1    Disco Ball

Where the headerText "Item Name" would have a toolTip stating "Stuff you like to play with". Let's say the dataField in this example is "item".

Ultimately I'd like a function where I can use a switch statement on the columns dataField property:

switch (columnname) {
case "item":
str = "Stuff you like to play with";
break;
}
Avatar of dgofman
dgofman
Flag of United States of America image

mx:DataGrid  or mx:AdvancedDataGrid ?
Avatar of coldchillin
coldchillin

ASKER

In this case: mx:DataGrid
ASKER CERTIFIED SOLUTION
Avatar of dgofman
dgofman
Flag of United States of America image

Link to home
membership
This content is only available to members.
To access this content, you must be a member of Experts Exchange.
Get Access
You can also can change position of tooltip

override protected function toolTipShowHandler(event:ToolTipEvent):void{
    event.toolTip.move(stage.mouseX, stage.mouseY);
}