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

Using control template

7 Answers 148 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Gilberto
Top achievements
Rank 1
Gilberto asked on 06 Aug 2009, 06:55 PM
Hello,

    I am implementing a control template to Radupload, i've generated a copy of a template, and update in particular text properties for translation purposes, so far everything works fine, i even can see my alterations in design mode of xaml, but when i run the application, everything comes back to original state.

i am using Silverlight 2, and radControls q2 2009, and editing a copy of template chosing to this document.

Someone to help?

Thanks in advance

Gilberto

7 Answers, 1 is accepted

Sort by
0
Gilberto
Top achievements
Rank 1
answered on 08 Aug 2009, 08:47 AM
0
Gilberto
Top achievements
Rank 1
answered on 10 Aug 2009, 05:22 PM
But i couldn't find the "Add more files" button.
0
Ivan
Telerik team
answered on 10 Aug 2009, 06:37 PM
Hi Gilberto,

"Add more files" and "Browse" are two different values assigned as a Content of the Browse-button (the left most in the default theme). In order to get "Add more files" string you should select some files first. Of course your upload control have to be initialized with IsAutomaticUpload="False".

We hope this information will help you.

Kind regards,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Gilberto
Top achievements
Rank 1
answered on 13 Aug 2009, 02:27 AM
Thanks Ivan, but i mean how can i access this button/string to translate it.

By the way, how can i change the behavior of a RadUpload, for instance:

 - upload more files after uploaded some files, i mean does not clear the items and keep the add more files visible.

- how can i recalculate the total after i remove some items from the item list?

Thanks again 

Gilberto
0
Ivan
Telerik team
answered on 13 Aug 2009, 08:43 AM
Hi Gilberto,

Thank you for the clarification.

About the Browse button and string translation.
Please note the content of the Browse-button (and some other parts of the upload control) reloads dynamic.  Because of this you can not change it just by getting a reference to the button. To translate the UI of the uploader you should rely on the Localization technique. It was already described in the How to localize RadUpload for Silverlight, the Localization for RadControls for Silverlight and WPF and the Enhancing the Localization Support of RadControls for Silverlight and WPF articles. Below are all uploader's IDs (and their default values) you should carry about:

UploadBrowse = "Browse" 
UploadBrowseAppend = "Add more files" 
UploadBufferSizeSoBig = "BufferSize too big. Please set it to a smaller value." 
UploadCancel = "Cancel" 
UploadCaptionSelect = "Select files to upload" 
UploadCaptionSelected = "Selected Files:" 
UploadCaptionUploaded = "Upload Done" 
UploadCaptionUploading = "Uploading..." 
UploadHandlerNotFoundOrFailed = "Handler not found or execution of the handler failed!" 
UploadItemDismissed = "Item dismissed." 
UploadPause = "Pause" 
UploadRestriction = "Some of selected files are restricted by:" 
UploadRestrictionCount = "Max number of uploaded files;" 
UploadRestrictionSize = "Max file size;" 
UploadRestrictionTotalSize = "Total size of all uploaded files;" 
UploadResume = "Resume" 
UploadTotal = "Total" 
UploadUnknownError = "Unknown error!" 
UploadUpload = "Upload" 
UploadUploadServiceUrlInvalidPropertyValue = "Invalid upload url. Please make sure the url is absolute!" 
UploadUploadServiceUrlSetProperty = "Property UploadServiceUrl not set" 


About "Add more files" feature.
This feature was implemented within the Q2 release, i.e. you should obtain at least the 200.2.701 release. To preview how it behaves please check our online demos. - select Manual upload, Multiple selection and Show add more files buttons.


About the stat-info (total and uploaded amount).
There were some glitches but in the latest release they were fixed.


Final note.
As we recently fixed some parts of the upload control we highly advise you to obtain and use our last release.

We hope this information will help you.

Best wishes,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Davut
Top achievements
Rank 1
answered on 22 May 2012, 01:48 PM
Hi,
I followed the steps on http://www.telerik.com/help/silverlight/radupload-localization.html.
Everytings seems fine except UploadBrowseAppend localization.
I'm using version 2010.3.1110.1040. Resource's modifier is public and below code shows designer.cs of res.;
   public static string UploadBrowseAppend {
            get {
                return ResourceManager.GetString("UploadBrowseAppend", resourceCulture);
            }
        }

But it's "add more files" on the screen even my Culture is "tr-TR". And it must be "Başka dosya ekleyiniz..."
Is there any soulution for version of 2010.3.1110.1040.

Note:Our product manager is very strict about these kind of problems and we can't upgrade telerik's new versions because we are afraid of bug issues. Tha last upgrade was very painfully so we stopped on 2010.3.1110.1040 for now.

Regards!
0
Tina Stancheva
Telerik team
answered on 24 May 2012, 03:03 PM
Hi Davut,

This was a known issue in the 2010.3.1110.1040 version of the controls. It was fixed with the Q3 2010 SP1(2010.3.1314) release. I hope this information will help. Let us know if we can assist you with anything else.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Upload
Asked by
Gilberto
Top achievements
Rank 1
Answers by
Gilberto
Top achievements
Rank 1
Ivan
Telerik team
Davut
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or