xRadUpload styling problem

5 posts, 1 answers
  1. Dako -
    Dako - avatar
    9 posts
    Member since:
    Nov 2009

    Posted 09 Nov 2009 Link to this post

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

    Posted 11 Nov 2009 Link to this post

    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.
  3. DevCraft banner
  4. Dako -
    Dako - avatar
    9 posts
    Member since:
    Nov 2009

    Posted 12 Nov 2009 Link to this post

    Hello Ivan,

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

    Cheers, Dako
  5. stacy cook
    stacy cook avatar
    3 posts
    Member since:
    Nov 2009

    Posted 15 Dec 2009 Link to this post

    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
  6. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 18 Dec 2009 Link to this post

    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.
Back to Top
DevCraft banner