Help with Tool-tip showing file content.

5 posts, 0 answers
  1. Ofer
    Ofer avatar
    28 posts
    Member since:
    Jul 2019

    Posted 22 Feb 2020 Link to this post

    Back when I used Kendo for jQuery, I was able to add Grid.kendoTooltip({ ... }).data("kendoTooltip");

    with:

    tipContent = "<div ><object data='" + e.target.context.href + "' type='application/" + tipAppType + "' width='" + tipWidth + "px' height='" + tipHeight + "px'>"
                        "</object></div>"

    and it would show the href ed file of the current Grid cell (or row) .

    I am tring to do the same with Kendo React (with hooks) 

    I now know that the <Grid /> needs to be nested inside the <Tooltip /> and not the <Tooltip /> inside a cell.

    Can someone publish an example how to do that? 

    Thanks

  2. Stefan
    Admin
    Stefan avatar
    3009 posts

    Posted 24 Feb 2020 Link to this post

    Hello, Ofer,

    This can by using the `content` property of the Tooltip to show more detailed information:

    https://www.telerik.com/kendo-react-ui/components/tooltip/templates/

    I made an example showcasing this:

    https://stackblitz.com/edit/react-k41x9f?file=app/main.jsx

    I hope this is helpful.

    Regards,
    Stefan
    Progress Telerik

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Ofer
    Ofer avatar
    28 posts
    Member since:
    Jul 2019

    Posted 24 Feb 2020 in reply to Stefan Link to this post

    I did almost exactly like you but it never hits the first line in "MyTooltipTemplate" function.
  4. Ofer
    Ofer avatar
    28 posts
    Member since:
    Jul 2019

    Posted 24 Feb 2020 in reply to Ofer Link to this post

    hit post too soon :-)

    Please look at the attached code and let me know what I am doing wrong.

     did almost exactly like you but it never hits the first line in "MyTooltipTemplate" function.

  5. Stefan
    Admin
    Stefan avatar
    3009 posts

    Posted 25 Feb 2020 Link to this post

    Hello, Ofer,

    Thank you for the code.

    I inspected it and it seems correct indeed and there is no visible reason why this should not work.

    As a clarification, this is not showing the Tooltip at all or it is showing it without the template?

    If a runnable example with the issue is provided, I will be happy to make a more detailed research on the small details that is causing this.

    Regards,
    Stefan
    Progress Telerik

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top