Planned
Last Updated: 29 Mar 2024 15:09 by ADMIN
Scheduled for 2024 Q2 (May)
Created by: Bob
Comments: 7
Category: Tooltip
Type: Feature Request
59
Is there any way to delay the showing of the tooltip when showing on hover?

I want it to only show the tooltip tip if I hover over an item for more than some time period (i.e. 3 seconds)
Declined
Last Updated: 05 Mar 2024 08:10 by ADMIN
Created by: Wei
Comments: 4
Category: Tooltip
Type: Feature Request
27

How can I set the tooltip to show/hide programmatically? right not it only supports hover or click show action.

---

ADMIN EDIT

You can Follow a way to hide the tooltip programmatically here: https://feedback.telerik.com/blazor/1476364-close-tooltip-via-method.

You can find a way to hack the show event by triggering a JS click in this KB article: https://docs.telerik.com/blazor-ui/knowledge-base/common-validation-error-in-tooltip.

Here is an example that shows how you can trigger the tooltip to show for a particular target:

@inject IJSRuntime _js

<script suppress-error="BL9992">
    function triggerTooltip(index, selector, showOnClick) {
        var targets = document.querySelectorAll(selector);
        if (targets && targets.length >= index) {
            var desiredTarget = targets[index];//feel free to get the desired target in any other way
            setTimeout(function () {
                var evt = document.createEvent('MouseEvent');
                var evtToSimulate = showOnClick ? "click" : "mouseenter";
                evt.initEvent(evtToSimulate, true, false);
                desiredTarget.dispatchEvent(evt);
            }, 20);
        }
    }
</script>

<TelerikButton OnClick="@( async () => await TriggerTooltip(0) )">Trigger tooltip for the first target</TelerikButton>
<TelerikButton OnClick="@( async () => await TriggerTooltip(1) )">Trigger tooltip for the SECOND target</TelerikButton>

<TelerikTooltip TargetSelector="@ttipTargetSelector" ShowOn="@ShowOnSetting">
</TelerikTooltip>



<p id="my-targets">
    <strong title="what is 'lorem ipsum'?">lorem</strong>
    ipsum dolor
    <strong title="is this a real word?">sit</strong>
    amet.
</p>

@code{
    string ttipTargetSelector = "p#my-targets [title]";
    TooltipShowEvent ShowOnSetting { get; set; } = TooltipShowEvent.Click;
    async Task TriggerTooltip(int targetIndex)
    {
        await _js.InvokeVoidAsync("triggerTooltip", 
                targetIndex, 
                ttipTargetSelector, 
                ShowOnSetting == TooltipShowEvent.Click ? true : false
             );
    }
}

---

Unplanned
Last Updated: 22 Jun 2023 06:38 by Florian
Created by: Florian
Comments: 0
Category: Tooltip
Type: Feature Request
2
Currently, tooltips appear when the cursor hovers over a target element and close when the cursor moves away from the target element. However, it would be beneficial to enhance this functionality by allowing tooltips to remain open even when the cursor is positioned over the tooltip itself. 
Under Review
Last Updated: 08 Feb 2023 15:48 by ADMIN
I would like to use a target selector that has some special symbols such as ! and @. Currently, the querySelectorAll() does not accept the !sample-class as a valid selector, but the getElementsByClassName accepts it. 
Duplicated
Last Updated: 24 Jan 2023 15:08 by Yazan
Created by: Tyler
Comments: 3
Category: Tooltip
Type: Feature Request
12

I would like to be able to do something like the following - cause the tooltip to close from my code:

<TelerikTooltip TargetSelector="#tooltip1" ShowOn="@TooltipShowEvent.Click" @ref="@TooltipRef">     
            <Template>
                 Content Here
                <button type="button" class="btn btn-primary" @onclick="tipClose">Save</button>                
            </Template>
</TelerikTooltip>

<a href="#" id="tooltip1" class="btn btn-secondary">open</a>

@code{
 Telerik.Blazor.Components.TelerikTooltip TooltipRef { get; set; }

void tipClose()
    {
       // TooltipRef ?
    }


}

Duplicated
Last Updated: 12 May 2022 11:49 by ADMIN
Created by: Jeffrey
Comments: 3
Category: Tooltip
Type: Feature Request
4
Would it be possible to add a duration parameter to the tooltip so it will automatically hide?
Unplanned
Last Updated: 05 May 2022 07:25 by Alexander
Created by: Alexander
Comments: 0
Category: Tooltip
Type: Feature Request
2

Please consider the ToolTip's ability to track changes in its target and update its own position accordingly.

A good example for this is the integration between the ToolTip and the Slider drag handle.

Duplicated
Last Updated: 04 Oct 2021 10:09 by ADMIN

Is there a way to add some delay to the TelerikTooltip component show event? I would like to force the user to hover in the element for a couple of seconds before he can see the tooltip.

Like in the ajax tooltip demo.

Completed
Last Updated: 02 Sep 2021 11:34 by ADMIN
Release 2.27.0

Unfortunately the tooltip component does only work for elements that are present at first rendering.

If elements are surrounded by an if-condition which becomes true at a later point in time, the tooltip is not displayed.

Our usecase:  We have tables where some data is computed after displaying the rest of the table.  The computing and displaying works and the title is there (and shown in the default windows tooltip) but the Telerik tooltip is not displayed.

Unplanned
Last Updated: 30 Dec 2020 09:19 by Giuseppe

I want to have an option to prevent tooltips from closing and having multiple tooltips attached to different elements, all visible simultaneously/independently.

 

 

Unplanned
Last Updated: 23 Nov 2020 16:40 by Ron Barone

There's no way for me to specify a tooltip with both Hover and Click support.

I would like my tooltip to work for both desktop and mobile.  Is there any way to do this?



This is what I'm doing now:

<TelerikTooltip  ShowOn="@TooltipShowEvent.Click" TargetSelector="@("#val" + FieldName)" />



Here's what I'm looking to do:

<TelerikTooltip  ShowOn="@TooltipShowEvent.Both" TargetSelector="@("#val" + FieldName)" />

 

---

ADMIN EDIT

This feature most probably will introduce a breaking change.

You can workaround this with using multiple TelerikTooltip declarations.

Check the attached file to see a sample implementation.

---

   
Declined
Last Updated: 19 Oct 2020 12:56 by ADMIN
Created by: Joonas
Comments: 1
Category: Tooltip
Type: Feature Request
0

When I have some dynamic content inside the tooltip template, the tooltip seems not to be re-rendering. E.g. when I have a tooltip with a text input and button and wish to disable the button when no text is entered, the tooltip seems to be only refreshing after closing and re-opening it. Simplified example:

 

<TelerikTooltip TargetSelector=".search-tooltip" Position="TooltipPosition.Bottom" ShowOn="TooltipShowEvent.Click">
	<Template>
		<TelerikTextBox @bind-Value="@SearchText"></TelerikTextBox>
		<TelerikButton OnClick="@Search" Enabled="@(!string.IsNullOrEmpty(SearchText))">Search</TelerikButton>
	</Template>
</TelerikTooltip>

 

Even tried using the ValueChanged event of the TelerikTextBox and calling the StateHasChanged() method but had the same result (the enabled/disabled state of button only changed after closing&re-opening the tooltip).

 

I would expect the binding and re-rendering to work as normally in Blazor. Is there a way to manually 'call refresh' on the tooltip?