This is a migrated thread and some comments may be shown as answers.
How to localize RadUpload and RadProgressArea?
1 Answer 46 Views
This is a migrated thread and some comments may be shown as answers.
Dima
Top achievements
Rank 1
Dima asked on 17 Jun 2008, 08:21 AM
Help me please! How to localize RadUpload and RadProgressArea? Where there should be resource files resx? Thanks!

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 17 Jun 2008, 01:07 PM
Hi Dima,

To my regret currently the localization possibilities of the RadUpload for ASP.NET Ajax control are very limited. We are working on fixing this for the RadControls for ASP.NET Ajax Q1 2008 SP2 release. In the meantime you can use the following client-side JavaScript workaround:

<telerik:RadUpload ID="RadUpload1"     
    OnClientAdded="OnClientAddedHandler"    
    runat="server"     
    ControlObjectsVisibility="All" /> 

<script type="text/javascript">    
function OnClientAddedHandler(upload, eventArgs)    
{       
    if (upload.get_controlObjectsVisibility())    
    {    
        var uploaduploadElement = 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";    
            }    
        }    
    }    
}    
</script> 



Kind regards,
Paul
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Asked by
Dima
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or