views:

507

answers:

2

Hi community,

I have a datagrid with one datagridcolumn in it. Without a custom itemrenderer I can use a datatipfunction for showing a custom datatip but now I want to have a custom item render for colouring the rows differently. Therefore I extended a label and changed the data method but now my datatipfunction does not work anymore.

Any ideas?

thanks in advance

Sebastian

A: 

Just off the top of my head, maybe make your custom item renderer extend DataGridColumn. This will give your item renderer all the functionality of a regular column.

maclema
DataGridColumn doesn't extend UIComponent or even DisplayObject.
cliff.meyers
Ah yes, that is correct. Try looking into the DataGridItemRenderer class, in the validateProperties method there is code that handles the dataTip's. You may be able to implement this in your custom renderer.
maclema
A: 

Hi

I know this question is a wee bit old, however I just ran into the same problem and solved it by looking at how the standard DataGridItemRenderer class does it.

So basically I ended up copying that toolTipShowHandler() function into my class (without any modification), implementing the IDropInListItemRenderer interface and adding a few lines into my renderer's commitProperties() function, which were inspired by the DataGridItemRenderer, too.

Hope this helps.

Tom