Upload styling questions

4 posts, 0 answers
  1. Angie
    Angie avatar
    101 posts
    Member since:
    Jan 2008

    Posted 10 Sep 2010 Link to this post

    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>
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 16 Sep 2010 Link to this post

    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
  3. DevCraft banner
  4. Angie
    Angie avatar
    101 posts
    Member since:
    Jan 2008

    Posted 16 Sep 2010 Link to this post

    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
  5. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 17 Sep 2010 Link to this post

    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
Back to Top