Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
650
tooltips for nested keys
posted

I am using the formatter to return a few column values for the grid. I notice that the tool tip returns the object as opposed to the value take from the formatter function. Also the tooltip always shows even though i have its visibility set to overflow. 

  • 10685
    Suggested Answer
    Offline posted

    Hello Robert,
    Welcome to the community!

    As the tooltips display the actual data value and not the formatted one, I suggest you to handle the tooltipShowing event and replace the tooltip values with the cell text displayed.
     For example:
                            tooltipShowing : function(evt, args) {
                                var newTooltipValue = args.element.innerText;
                                //Update the tooltip vallue to use the cell html text 
                                args.tooltip=newTooltipValue; 

                            } 
    I have prepared a sample for you: http://jsfiddle.net/yco8y88d/3/
    Please let me know if this approach suits your requirements!