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

tile tool tip change client side

1 Answer 40 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 29 Sep 2016, 07:44 PM

How do I change a tile's tool tip on the client side?

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 30 Sep 2016, 09:59 AM

Hi Daniel,

You can do this by changing the title attribute of its HTML element, as with any other HTML element:

<telerik:RadTextTile runat="server" ID="RadTextTile1" ToolTip="aaa" Text="lorem ipsum"></telerik:RadTextTile>
<asp:Button ID="Button1" Text="change tooltip" OnClientClick="changeTtip(); return false;" runat="server" />
<script>
    function changeTtip() {
        var tileElem = document.getElementById("<%=RadTextTile1.ClientID%>"); //or get the reference otherwise (jQuery, by class, in a loop, through the tile API, etc.)
        tileElem.setAttribute("title", "bbbb");
 
    }
</script>

Regards,

Marin Bratanov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
TileList
Asked by
Daniel
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or