Todd
Presuming on what Alex Harui said,  here's how to procedure:


<mx:Component id="todd">
            <mx:Label mouseOver="parentDocument.showDaysToolTip()"/>
</mx:Component>

<mx:DataGridColumn headerText="Days" dataField="daysOfWeek"
sortable="false" editable="false"
itemRenderer="{todd}"
width="40" showDataTips="true" dataTipFunction="showDaysToolTip"/>

And my function is defined like this:

public function showDaysToolTip(obj:Object): String {
trace("in showDaysToolTip");
return "testing";
}


Regards.

On 2/13/07, Todd Breiholz <[EMAIL PROTECTED]> wrote:

  Is it just me, or is it not possible to set a dataTipFunction on a
DataGridColumn that uses a custom itemRenderer?

I have the following DataGridColumn defined:

<mx:DataGridColumn headerText="Days" dataField="daysOfWeek"
sortable="false" editable="false"
itemRenderer="com.meredith.newmedia.bhgdesktop.view.admin.blogDaysIcon"
width="40" showDataTips="true" dataTipFunction="showDaysToolTip"/>

And my function is defined like this:

public function showDaysToolTip(obj:Object): String {
trace("in showDaysToolTip");
return "testing";
}

But this is never getting called.

Am I doing something unsupported?

Thanks!

Todd



--
----------------------------
Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta

Reply via email to