tile tool tip change client side

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    11 posts
    Member since:
    Mar 2014

    Posted 29 Sep Link to this post

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

     

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 30 Sep Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top