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

Caption Text

2 Answers 69 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mike Kacos
Top achievements
Rank 1
Mike Kacos asked on 20 Jun 2012, 03:02 PM
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?

Thanks,
-Mike

2 Answers, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 22 Jun 2012, 09:15 PM
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!
Lancelot


0
Petar Mladenov
Telerik team
answered on 25 Jun 2012, 08:21 AM
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:
RadUploadLocalization
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 >>

Tags
Upload
Asked by
Mike Kacos
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or