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

Upload Styles Problem(uploading..)

3 Answers 56 Views
Upload
This is a migrated thread and some comments may be shown as answers.
sam Aryan
Top achievements
Rank 1
sam Aryan asked on 14 Dec 2010, 08:24 PM
With the new telerik:RadUpload. the moment  i put the Default style and run it. it freeze the page start with (uploading...) instead of show (please select a file to upload) if i take off the style it work fine but the moment i insert the style the behavior change. and Im not modifying the styles just the one from telerik.

Thanks

3 Answers, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 15 Dec 2010, 01:59 PM
Hi sam Aryan,

In Q3, we did some major changes in the UI related code. We have also changed the old default style, added VSM, DelegateCommands, etc. If you are upgrading from an earlier version to Q3, we recommend that you take a look at the new default style. If you still have an issue with this, it would be great if you could send us your custom style so that we can look into it.

All the best,
Alex Fidanov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
sam Aryan
Top achievements
Rank 1
answered on 15 Dec 2010, 08:20 PM
Hi there,

Still the same problem. This is the code ....

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    x:Class="uploadChile_Q3.MainPage"
    Width="640" Height="480">
    <UserControl.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>
        <SolidColorBrush x:Key="ControlHeader_OuterBorderBrush" Color="#FF282828"/>
        <LinearGradientBrush x:Key="ControlHeader_Background" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF5B5B5B" Offset="1"/>
            <GradientStop Color="#FF868686"/>
            <GradientStop Color="#FF4F4F4F" Offset="0.42"/>
            <GradientStop Color="#FF0E0E0E" Offset="0.43"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="ControlHeader_InnerBorderBrush" Color="#FFB5B5B5"/>
        <SolidColorBrush x:Key="ControlHeader_Foreground" Color="#FFFFFFFF"/>
        <telerik:Office_BlackTheme 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="RadUploadStyle1" 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>
                                    <Border BorderBrush="{StaticResource ControlHeader_OuterBorderBrush}" BorderThickness="1" Background="{StaticResource ControlHeader_Background}" Margin="-1 -1 -1 0">
                                        <Border BorderBrush="{StaticResource ControlHeader_InnerBorderBrush}" BorderThickness="1"/>
                                    </Border>
                                    <TextBlock x:Name="ProgressCaptionText" Foreground="{StaticResource ControlHeader_Foreground}" Margin="12,7,12,6" telerik:LocalizationManager.ResourceKey="UploadCaptionSelect" Text="Uploading ..."/>
                                    <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" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalScrollBarVisibility="Auto">
                                        <ItemsPresenter/>
                                    </ScrollViewer>
                                    <Grid x:Name="TotalProgressArea" Margin="0 10 0 10" Grid.Row="2" Visibility="Collapsed">
                                        <telerik: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" telerik: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="Cancel" Margin="5" Padding="15 3" telerik:LocalizationManager.ResourceKey="UploadCancel" telerik:StyleManager.Theme="{StaticResource Theme}" Visibility="Collapsed"/>
                                                <Button x:Name="UploadButton" Content="Upload" Margin="5" Padding="15 3" telerik:LocalizationManager.ResourceKey="UploadUpload" telerik:StyleManager.Theme="{StaticResource Theme}" Visibility="Collapsed"/>
                                                <Button x:Name="PauseButton" Content="Pause" Margin="5" Padding="15 3" telerik:LocalizationManager.ResourceKey="UploadPause" telerik:StyleManager.Theme="{StaticResource Theme}" Visibility="Collapsed"/>
                                                <Button x:Name="BrowseButton" Content="Browse" Margin="5" Padding="15 3" telerik:LocalizationManager.ResourceKey="UploadBrowse" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                                            </StackPanel>
                                        </Border>
                                    </Border>
                                </Grid>
                            </Border>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
0
sam Aryan
Top achievements
Rank 1
answered on 15 Dec 2010, 10:11 PM
Hi there I got it.
Thanks
Tags
Upload
Asked by
sam Aryan
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
sam Aryan
Top achievements
Rank 1
Share this question
or