Using control template

8 posts, 0 answers
  1. Gilberto
    Gilberto avatar
    65 posts
    Member since:
    Sep 2006

    Posted 06 Aug 2009 Link to this post

    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
  2. Gilberto
    Gilberto avatar
    65 posts
    Member since:
    Sep 2006
  3. DevCraft banner
  4. Gilberto
    Gilberto avatar
    65 posts
    Member since:
    Sep 2006

    Posted 10 Aug 2009 Link to this post

    But i couldn't find the "Add more files" button.
  5. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 10 Aug 2009 Link to this post

    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.
  6. Gilberto
    Gilberto avatar
    65 posts
    Member since:
    Sep 2006

    Posted 12 Aug 2009 Link to this post

    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
  7. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 13 Aug 2009 Link to this post

    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.
  8. Davut
    Davut avatar
    11 posts
    Member since:
    Jul 2011

    Posted 22 May 2012 Link to this post

    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!
  9. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 24 May 2012 Link to this post

    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 >>

Back to Top
DevCraft banner