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

Upload styling questions

3 Answers 47 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Angie
Top achievements
Rank 1
Angie asked on 10 Sep 2010, 11:12 PM
I have two questions related to the Upload control.

1)  I would like the Upload Control to automatically increase in height according to the number of files selected by the user.  I tried a previous thread's suggestion of adding "Max Height = Infinity", but that did not work.

2)  I would like to change the theme to Windows7.  I tried following the directions in the Setting The Theme link, but I get a "resource missing" error.

Below is my control code.  Please advise.  Thank you. 

<UserControl x:Class="ImageGalleryUpload.Page"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
    Width="550" >
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadUpload 
            x:Name="radUpload"
            FilterIndex="0" IsAutomaticUpload="false" OverwriteExistingFiles="True" 
            HorizontalAlignment="Left"
            VerticalAlignment="Top" 
              FilesSelected="radUpload_FilesSelected"
            UploadStarted="radUpload_UploadStarted" 
             FileUploaded="radUpload_FileUploaded"  
             FileUploadStarting="RadUpload_FileUploadStarting"
              UploadFinished="RadUpload_UploadFinished"
              Width="550"
               MaxFileSize="5000000"
                MaxFileCount="20"
                IsAppendFilesEnabled="True"
               
            />
    </Grid>
</UserControl>

3 Answers, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 16 Sep 2010, 08:26 AM
Hi Angie,

You need to set MaxHeight of the RadUpload to some relatively big number. You can find the attached example and also the windows7 theme applied to the RadUpload.
If you have further questions, please share them with us.

Sincerely yours,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Angie
Top achievements
Rank 1
answered on 16 Sep 2010, 06:33 PM
Thanks Miro, I was able to get the height to work.

However, I was unable to open the example project.  From what I could tell, though, if I try to use the references from the example project, I lose the reference to the namespace for the Telerik.Windows.Control.Input:

xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"

the above are my namespace references  VS  below (copied from the example)


Either way, I get a build error that says that the telerik:StyleManager cannot be found.  The project itself is referencing Telerik.Windows.Controls, Telerik.Windows.Input, and Telerik.Windows.Themes.Windows7.

Thanks.

-Angie
0
Miro Miroslavov
Telerik team
answered on 17 Sep 2010, 03:30 PM
Hi Angie,


This is the universal namespace that aggregates all referenced telerik assemblies. 
About StyleManager - it is defined in Telerik.Windows.Controls.dll and Telerik.Windows.Controls namespace, so you will need different than Input xml-ns declaration.
Please let me know if you need more assistance.

Regards,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Upload
Asked by
Angie
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Angie
Top achievements
Rank 1
Share this question
or