This is a migrated thread and some comments may be shown as answers.

Help with Tool-tip showing file content.

4 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ofer
Top achievements
Rank 1
Veteran
Ofer asked on 22 Feb 2020, 04:53 PM

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

4 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 24 Feb 2020, 12:08 PM

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
0
Ofer
Top achievements
Rank 1
Veteran
answered on 24 Feb 2020, 01:41 PM
I did almost exactly like you but it never hits the first line in "MyTooltipTemplate" function.
0
Ofer
Top achievements
Rank 1
Veteran
answered on 24 Feb 2020, 02:00 PM

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.

0
Stefan
Telerik team
answered on 25 Feb 2020, 08:20 AM

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
Tags
General Discussions
Asked by
Ofer
Top achievements
Rank 1
Veteran
Answers by
Stefan
Telerik team
Ofer
Top achievements
Rank 1
Veteran
Share this question
or