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

Some Problems with version 2010.2.1105.1040

1 Answer 33 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Berthold
Top achievements
Rank 1
Berthold asked on 09 Nov 2010, 04:07 PM

Hi, 
I've installed a new version of telerik and get into some problems.
It seems there has something  changed with styles. I reported a problem with RadPanelBar via Supportticket.
Now I got a problem with file uploader (see code below -> sorry I couldn't format it as code. It seems to be too much code)

What I want:
- Fileuploader without Header und without Button "Upload" (see attached screenshot)
What I've done:
- created a template (some weeks ago - with Blend)
What happen (now - I mean since the new version)
- everthing looks fine, but when I add a File, the list keps empty -> no files will be added

Any hint?
Regards
Berthold


<

 

 

navigation:Page x:Class="KdoRekr2.Views.Kontingent.KontingentImportView"

 

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

 

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

 

 

 

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

 

 

 

mc:Ignorable="d"

 

 

 

xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input" xmlns:telerik1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" d:DesignWidth="640" d:DesignHeight="480"

 

 

 

Title="ChooseImportFile Page">

 

 

 

 

<navigation:Page.Resources>

 

 

 

 

<SolidColorBrush x:Key="Upload_Background" Color="#FFFFFFFF"/>

 

 

 

 

<SolidColorBrush x:Key="Upload_OuterBorder" Color="#FF848484"/>

 

 

 

 

<SolidColorBrush x:Key="Upload_InnerBorder" Color="Transparent"/>

 

 

 

 

<Thickness x:Key="ControlInnerBorder_Thickness">0</Thickness>

 

 

 

 

<telerik1:Windows7Theme x:Key="Theme"/>

 

 

 

 

<SolidColorBrush x:Key="Upload_BottomPartBorder" Color="#FF848484"/>

 

 

 

 

<Thickness x:Key="Upload_BottomPartBorder_Thickness">0 1 0 0</Thickness>

 

 

 

 

<LinearGradientBrush x:Key="Upload_BottomPartBackground" EndPoint="0.5,1" StartPoint="0.5,0">

 

 

 

 

<GradientStop Color="#FFBEBEBE"/>

 

 

 

 

<GradientStop Color="#FFF0F0F0" Offset="0.3"/>

 

 

 

 

</LinearGradientBrush>

 

 

 

 

<SolidColorBrush x:Key="Upload_BottomPartInnerBorder" Color="Transparent"/>

 

 

 

 

<Thickness x:Key="Upload_BottomPartInnerBorder_Thickness">0</Thickness>

 

 

 

 

<CornerRadius x:Key="Upload_InnerCornerRadius">0</CornerRadius>

 

 

 

 

<CornerRadius x:Key="Upload_OuterCornerRadius">0</CornerRadius>

 

 

 

 

<Style x:Key="UploadControlStyle" TargetType="telerik:RadUpload">

 

 

 

 

<Setter Property="Filter" Value="All files (*.*)|*.*"/>

 

 

 

 

<Setter Property="FilterIndex" Value="1"/>

 

 

 

 

<Setter Property="IsMultiselect" Value="true"/>

 

 

 

 

<Setter Property="BufferSize" Value="100000"/>

 

 

 

 

<Setter Property="MaxFileSize" Value="-1"/>

 

 

 

 

<Setter Property="MaxUploadSize" Value="-1"/>

 

 

 

 

<Setter Property="MaxFileCount" Value="-1"/>

 

 

 

 

<Setter Property="MinHeight" Value="175"/>

 

 

 

 

<Setter Property="MinWidth" Value="350"/>

 

 

 

 

<Setter Property="MaxHeight" Value="300"/>

 

 

 

 

<Setter Property="Width" Value="400"/>

 

 

 

 

<Setter Property="IsEnabled" Value="True"/>

 

 

 

 

<Setter Property="IsPauseEnabled" Value="True"/>

 

 

 

 

<Setter Property="IsDeleteEnabled" Value="True"/>

 

 

 

 

<Setter Property="Background" Value="{StaticResource Upload_Background}"/>

 

 

 

 

<Setter Property="BorderBrush" Value="{StaticResource Upload_OuterBorder}"/>

 

 

 

 

<Setter Property="BorderThickness" Value="1"/>

 

 

 

 

<Setter Property="IsAppendFilesEnabled" Value="True"/>

 

 

 

 

<Setter Property="Template">

 

 

 

 

<Setter.Value>

 

 

 

 

<ControlTemplate TargetType="telerik:RadUpload">

 

 

 

 

<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{StaticResource Upload_OuterCornerRadius}" Grid.RowSpan="4">

 

 

 

 

<Border BorderBrush="{StaticResource Upload_InnerBorder}" BorderThickness="{StaticResource ControlInnerBorder_Thickness}" CornerRadius="{StaticResource Upload_InnerCornerRadius}">

 

 

 

 

<Grid x:Name="RootElement">

 

 

 

 

<Grid.RowDefinitions>

 

 

 

 

<RowDefinition Height="auto"/>

 

 

 

 

<RowDefinition Height="*"/>

 

 

 

 

<RowDefinition Height="auto"/>

 

 

 

 

<RowDefinition Height="auto"/>

 

 

 

 

</Grid.RowDefinitions>

 

 

 

 

<Grid x:Name="IconError" HorizontalAlignment="Right" Height="17.97" Margin="0,0,10,0" Visibility="Collapsed" VerticalAlignment="Center" Width="14.609">

 

 

 

 

<Path Data="M577.89149,269.68195 L584.80031,257.78582 591.50111,269.64775 z" Margin="0,1.786,0,3.288" Stretch="Fill" Stroke="#FFFFFFFF">

 

 

 

 

<Path.Fill>

 

 

 

 

<LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">

 

 

 

 

<GradientStop Color="#FFFFC600" Offset="0"/>

 

 

 

 

<GradientStop Color="#FFFDFF00" Offset="1"/>

 

 

 

 

</LinearGradientBrush>

 

 

 

 

</Path.Fill>

 

 

 

 

</Path>

 

 

 

 

<TextBlock FontWeight="Bold" FontSize="8" Height="Auto" Margin="6,4,6,4" TextWrapping="Wrap" Text="!" Width="Auto"/>

 

 

 

 

</Grid>

 

 

 

 

<Border Background="{TemplateBinding Background}" Grid.Row="1" Grid.RowSpan="2"/>

 

 

 

 

<ScrollViewer x:Name="ScrollViewer" BorderThickness="0" Margin="12,8" Grid.Row="1" telerik1:StyleManager.Theme="{StaticResource Theme}" VerticalScrollBarVisibility="Auto">

 

 

 

 

<ItemsPresenter/>

 

 

 

 

</ScrollViewer>

 

 

 

 

<Grid x:Name="TotalProgressArea" Margin="0 10 0 10" Grid.Row="2" Visibility="Collapsed">

 

 

 

 

<telerik1:RadProgressBar x:Name="TotalProgressBar" Height="27" Maximum="100" Margin="5,0" Minimum="0" MinHeight="20"/>

 

 

 

 

<Grid VerticalAlignment="Center">

 

 

 

 

<TextBlock x:Name="TotalText" FontWeight="Bold" Margin="12, 5" telerik1:LocalizationManager.ResourceKey="UploadTotal" Text="Total"/>

 

 

 

 

<TextBlock x:Name="TotalPercentText" FontWeight="Bold" HorizontalAlignment="Center" Margin="5" Text="0%"/>

 

 

 

 

<TextBlock x:Name="TotalSizeText" FontWeight="Bold" HorizontalAlignment="Right" Margin="5,5,12,5" Text="0"/>

 

 

 

 

</Grid>

 

 

 

 

</Grid>

 

 

 

 

<Border BorderBrush="{StaticResource Upload_BottomPartBorder}" BorderThickness="{StaticResource Upload_BottomPartBorder_Thickness}" Background="{StaticResource Upload_BottomPartBackground}" Grid.Row="3">

 

 

 

 

<Border BorderBrush="{StaticResource Upload_BottomPartInnerBorder}" BorderThickness="{StaticResource Upload_BottomPartInnerBorder_Thickness}">

 

 

 

 

<StackPanel HorizontalAlignment="Right" Margin="3" Orientation="Horizontal" VerticalAlignment="Center">

 

 

 

 

<Button x:Name="CancelButton" Content="Abbrechen" Margin="5" Padding="15 3" telerik1:StyleManager.Theme="{StaticResource Theme}" Visibility="Collapsed"/>

 

 

 

 

<Button x:Name="PauseButton" Content="Pause" Margin="5" Padding="15 3" telerik1:StyleManager.Theme="{StaticResource Theme}" Visibility="Collapsed"/>

 

 

 

 

<Button x:Name="BrowseButton" Content="Datei suchen..." Margin="5" Padding="15 3" telerik1:StyleManager.Theme="{StaticResource Theme}"/>

 

 

 

 

</StackPanel>

 

 

 

 

</Border>

 

 

 

 

</Border>

 

 

 

 

</Grid>

 

 

 

 

</Border>

 

 

 

 

</Border>

 

 

 

 

</ControlTemplate>

 

 

 

 

</Setter.Value>

 

 

 

 

</Setter>

 

 

 

 

</Style>

 

 

 

 

</navigation:Page.Resources>

 

 

 

 

 

<Grid x:Name="LayoutRoot" VerticalAlignment="Top" >

 

 

 

 

 

<StackPanel >

 

 

 

 

</RichTextBox>

 

 

 

 

 

<telerik:RadUpload Margin="5 5 10 0"

 

 

 

Name="UploadFileCtrl"

 

 

 

UploadServiceUrl = "/ClientBin/FileUploadHandler.ashx"

 

 

 

IsAutomaticUpload="false"

 

 

 

OverwriteExistingFiles="True"

 

 

 

Filter="Kontingentdateien (*.xlsx;*.xls)|*.xlsx;*.xls"

 

 

 

Style="{StaticResource UploadControlStyle}"

 

 

 

TargetFolder="Kontingente"

 

 

 

HorizontalAlignment="Left"

 

 

 

VerticalAlignment="Top"

 

 

 

Width="500"

 

 

 

Background="GhostWhite"/>

 

 

 

 

 

</StackPanel>

 

 

 

 

<!---->

 

 

 

 

</Grid>

 

</

 

 

navigation:Page>

 

1 Answer, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 11 Nov 2010, 01:51 PM
Hi Berthold,

We apologize for the inconvenience. Recently, we have made some changes around the client side code of the RadUpload. The style and template of the RadUpload was also affected by these changes. I would recommend using Blend to get the new template of the RadUpload (please note that the final stable version after the changes is the Q3 release, so use that if possible) and try with the new one. Let us know if you still have issues with this. The online help for the RadUpload is also updated accordingly with the new changes.

Greetings,
Alex Fidanov
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
Berthold
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Share this question
or