Remove tooltip for the input and select button

Thread is closed for posting
6 posts, 0 answers
  1. Michel
    Michel avatar
    11 posts
    Member since:
    Oct 2011

    Posted 23 Apr 2012 Link to this post

    Hello,

    I'd like to remove the tooltip "Aucun fichier choisi" for the Select button.

    Thanks!
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Apr 2012 Link to this post

    Hi Michel,

    I suppose that you want to hide the tooltip for select button after selecting a file. Try the following JavaScript.

    JS:
    <script type="text/javascript">
     function OnClientFileSelected(sender, args)
      {
        var parent = args.get_fileInputField().parentNode;
        parent.childNodes[0].title = "";
        parent.childNodes[1].title = "";
      }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michel
    Michel avatar
    11 posts
    Member since:
    Oct 2011

    Posted 23 Apr 2012 Link to this post

    Thanks Shinu,

    No, sorry but I'd like to completely remove the tooltip.

    I can't do this with OnClientAdded, OnClientAdding, OnClientClearing, ...

    I don't konw why, but I can see the tooltip just with Chrome!
  5. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 26 Apr 2012 Link to this post

    Hello Michel,

    Unfortunately this is a browser issue and we have no control over it. WebKit based browsers (like Chrome and Safari) render the <input type="file" /> tag differently, and apparently for some reason Chrome puts a default tooltip on it. Since RadUpload and RadAsyncUpload both use the <input type="file" /> tag internally, this issue is observed in them as well.

    You can test this yourself. Just put a regular <input type="file" /> on the page and observe it's behavior in Chrome.
     
    Greetings,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. shaherzad
    shaherzad avatar
    1 posts
    Member since:
    Oct 2015

    Posted 13 Apr in reply to Bozhidar Link to this post

    Hi team,

    I was able to remove the tooltip through set property  (ToolTip="&nbsp;") in RadAsyncUpload.

    But that is only working for "Chrome" browser. Not "Mozilla".

    Please suggest.

  7. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 14 Apr Link to this post

    Hi,

    As in my previous reply, does this work correctly with <input type="file" />? 

    Regards,
    Bozhidar
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017