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

RadUpload Remove button tooltip

2 Answers 84 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Sadeka
Top achievements
Rank 1
Sadeka asked on 30 Jun 2008, 10:47 AM
I have a query about the RadUploader.
HOw can I add tooltip to the Remove button of the uploader?

-- Sadeka

2 Answers, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 30 Jun 2008, 01:08 PM
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
0
Sadeka
Top achievements
Rank 1
answered on 01 Jul 2008, 04:53 AM
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
Tags
Upload (Obsolete)
Asked by
Sadeka
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Sadeka
Top achievements
Rank 1
Share this question
or