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

xRadUpload styling problem

4 Answers 198 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Dako -
Top achievements
Rank 1
Dako - asked on 09 Nov 2009, 03:34 PM
Hi,

In my site I've implemented the RadUpload control. Because the control is not styled the way I want, I'm restyling it for my site. The way I'm doing this is as follows: In Expression Blend, Right click on xRadUpload > Edit Template > Edit a Copy. After doing this I'm able to style almost everything, except for one thing. During runtime of the Silverlight application, the xRadUpload enables users to upload files. Those files that are selected after using the browse button, show up in the application in several bars. I want to restyle those specific bars. The problem is, I can't find those bars using Expression Blend.

Up till now I was able to style everything by just simply right clicking everything and edit the templates. Unfortunately I can't find how to restyle the bars which represents the items that are being uploaded. Is there an explanation for this problem, or am I missing something?

Cheers,

4 Answers, 1 is accepted

Sort by
0
Accepted
Ivan
Telerik team
answered on 11 Nov 2009, 04:05 PM
Hello Dako -,

Thank you for your interest in the RadUpload for Silverlight.

In order to change the style of the selected/uploaded files you should set the ItemContainerStyle with your new style. For example you can follow this instruction:
  • Inside the Blend add the RadUpload control;
  • Select the upload control and Edit a Copy of its template;
  • Then add an RadUploadItem to the page (you can add it inside the upload control - it works) and edit a copy of its template too.
  • Now you have both Styles for the uploader and for its items.
  • Initialize the uploader's property ItemContainerStyle with the value of your brand new item-style:
     
    <telerikInput:RadUpload
        ItemContainerStyle="{StaticResource RadUploadItemStyle1}"
        ... />
     
  • Remove the RadUploadItem element from the page.
That's all.

Please give it a try and let us know if you have other questions.

Greetings,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Dako -
Top achievements
Rank 1
answered on 12 Nov 2009, 08:03 AM
Hello Ivan,

This was exactly what I needed.
Thank you so much, you really made my day.

Cheers, Dako
0
stacy cook
Top achievements
Rank 1
answered on 15 Dec 2009, 02:56 PM
Hello Ivan:

When I used blend to get the style for the upload control and add it to the page containing the upload control, it will not compile.
Do you have a sample containing the xaml for the control with it's default styling that you can post?

Thank You
Stacy
0
Kiril Stanoev
Telerik team
answered on 18 Dec 2009, 10:08 AM
Hello Stacy,

Please find attached a sample project that contains the styles for both RadUpload and RadUploadItem. Have a look at it and let me know if something needs further explanation.

Greetings,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Upload
Asked by
Dako -
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Dako -
Top achievements
Rank 1
stacy cook
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or