RadUpload Remove button tooltip

Thread is closed for posting
3 posts, 1 answers
  1. Sadeka
    Sadeka avatar
    8 posts
    Member since:
    May 2008

    Posted 30 Jun 2008 Link to this post

    I have a query about the RadUploader.
    HOw can I add tooltip to the Remove button of the uploader?

    -- Sadeka
  2. Answer
    Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 30 Jun 2008 Link to this post

    Hello Sadeka,

    I noticed that you have downloaded RadControls for ASP.NET AJAX and that is why I am moving this thread to the appropriate forum.

    Here is what you need to do in order to set the tooltip for the Remove button:
    subscribe to the OnClientAdded event and define its event handler as follows:

    RadUpload for ASP.NET AJAX:

    function onClientAdded(sender, eventArgs) 
        var row = eventArgs.get_row(); 
        var inputs = row.getElementsByTagName("INPUT"); 
         
        for (var i = 0; i < inputs.length; i++) 
        { 
            if (inputs.item(i).value == "Remove"
            { 
                inputs.item(i).title = "Remove this input"
            } 
        } 
    }   


    "classic" RadUpload:

    function OnClientAddedHandler(upload, eventArgs) 
        var row = eventArgs.Row; 
        var inputs = row.getElementsByTagName("INPUT"); 
        for (var i = 0; i < inputs.length; i++) 
        { 
            if (inputs.item(i).value == "Remove"
            { 
                inputs.item(i).title = "Remove this input"
            } 
        } 

    I hope this helps.

    All the best,
    Veskoni
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Sadeka
    Sadeka avatar
    8 posts
    Member since:
    May 2008

    Posted 30 Jun 2008 Link to this post

    Hi Veskoni / Telerik team,

    Thank you for the help tip.

    Since I have implemented Language support, so i didn't check the value of the remove button. I just tested the class of that button.

    Thanks again for your help.

    -- Sadeka
Back to Top