RadUpload for ASP.NET AJAX

RadControls for ASP.NET AJAX

These examples show how to localize the RadUpload client-side.

Subscribe to the OnClientAdded event and define its handler as follows:

CopyJavaScript
        function OnClientAddedHandler(upload, eventArgs) {
            if (upload.get_controlObjectsVisibility()) {
                var uploadElement = upload.get_element();
                var inputs = uploadElement.getElementsByTagName("input");
                for (var i = 0; i < inputs.length; i++) {
                    var input = inputs[i];
                    var id = input.id;
                    //customize the Add Button  
                    if (id == upload.get_id() + "AddButton") {
                        input.value = "Custom AddButton";
                    }
                    //customize the Remove button  
                    if (id.indexOf(upload.get_id() + "remove") > -1) {
                        input.value = "Delete it";
                    }
                    //customize the Clear button  
                    if (id.indexOf(upload.get_id() + "clear") > -1) {
                        input.value = "Clear it";
                    }
                    //customize the Select button                              
                    if (input.className == "ruButton ruBrowse") {
                        input.value = "Browse it";
                    }
                    //customize the Delete button  
                    if (id == upload.get_id() + "DeleteButton") {
                        input.value = "Custom Delete";
                    }
                }
            }
        }  

In this way you can localize several RadUpload controls differently.