Caption Text

3 posts, 0 answers
  1. Mike Kacos
    Mike Kacos avatar
    28 posts
    Member since:
    Sep 2009

    Posted 20 Jun 2012 Link to this post

    Hi, I need to be able to change the CaptionText on the RadUpload control.  In Blend, when I alter the CaptionText property, my changes seem to take effect immediately.  However, when I save and come back to the page the default "Select Files to upload" is back.  The same thing happens when I run my app.  What am I doing wrong?  Is there a way to permanently change that caption?

  2. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 22 Jun 2012 Link to this post

    Hi Mike,

     When you change the text of that textblock it would be temporary because it is still bound to the template via a CaptionText property. First thing you need to do is make a copy of the ControlTemplate. Here's how...
    1. Open your project in Blend
    2. Right click on the RadUpload control you want to change and select Edit Template
    3. Select "Edit a copy"
    4. Expand the visual tree until you see a textblock, select it.
    5. Change to SplitView and find the Text property (see my attached image)
    6. Remove the binding and enter the text you want.

    Thats it, save your project and run it. From now on, the control will be using your custom template and your text.

    Good Luck!

  3. Petar Mladenov
    Petar Mladenov avatar
    2991 posts

    Posted 25 Jun 2012 Link to this post

    Hello Mike,

     You can also take advantage of the localized resources in the RadUpload. This articles will help you get started with the localization in this control:
    RadControls Localization

    All the best,
    Petar Mladenov
    the Telerik team

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

Back to Top