I need to show dataTip on a datagrid column only if its length is greater than 20 chars.
Additionaly, my datagrid is a custom component, I am passing the column names as an array and building the grid dynamically
so that it could be used for any dataprovider (with different set of columns).
when the dataTipFunction is invoked runtime I would not know the column field name
to access the value since the dataTipFunction makes available only the item:Object unlike labelFunction which provides both item and column.
But i would know all the column names at any given point in time.
Is there anyway we can get hold for which column the dataTipFunction is being called for...
Any help is greatly appreciated.
Subclass DataGridColumn and add the dataTipFunction to the subclass. Then
the 'this' pointer will be the column.