Lose tooltip when setOptions()

2 posts, 0 answers
  1. Marc
    Marc avatar
    128 posts
    Member since:
    Jul 2010

    Posted 12 Jun 2017 Link to this post

    I have a grid column with a mouseover tooltip based on data from other columns using a client template javascript function.

    When the users load their own options using a setOptions function, the tool tip disapears from that column when the setoptions method specifies a different column order.

    I'm seeing this with different tooltip methods: the kendo tooltip widget, the bootstrap data-toggle widget and just having the mouseover of the title on the cell. Oddly the background color that is also dynamically applied via the same client template function is preserved.

     

    Any explanation for this behavior?

  2. Stefan
    Admin
    Stefan avatar
    2887 posts

    Posted 14 Jun 2017 Link to this post

    Hello Marc,

    As the ToolTip is a separate widget when the column order is changed the ToolTip has to be destroyed and reinitialized again fro the new column.

    Please check the approach used in this example. Please have in mind that instead on the columReorder event, the old ToolTip has to be destroyed when the setOptions method is used, and then the new one has to be added on the dataBound event of the Grid:

    http://dojo.telerik.com/AJudI

    http://docs.telerik.com/kendo-ui/intro/widget-basics/destroy

    http://docs.telerik.com/kendo-ui/api/javascript/ui/tooltip#configuration-filter

    If the issue still occurs, please provide a runnable example, and I will gladly assist.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top