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

browse button doesn't fire

1 Answer 37 Views
Upload
This is a migrated thread and some comments may be shown as answers.
frans van Ek
Top achievements
Rank 1
frans van Ek asked on 02 Oct 2009, 12:45 PM
hi,

i have placed the uploadcontrol in my own control. But now the browse button doesn't fire anymore.

when i place the uploadcontrol directy on my main page browse does function.

can anyone give me a hint?

<UserControl xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"  x:Class="SharedBusinessData.MultiUploadControl" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
    Width="980" Height="500">  
    <Grid x:Name="LayoutRoot" Background="{StaticResource FilterPaneBackgroundGradient}">  
        <Grid.ColumnDefinitions> 
            <ColumnDefinition Width="200"/>  
            <ColumnDefinition Width="200"/>  
            <ColumnDefinition Width="580"/>  
        </Grid.ColumnDefinitions> 
        <Grid.RowDefinitions> 
            <RowDefinition Height="450"/>  
            <RowDefinition Height="50"/>  
        </Grid.RowDefinitions> 
        <telerikInput:RadUpload   
            x:Name="RadUpload" 
            Grid.Column="0" 
            Grid.Row="0" 
            Width="200" 
            MaxHeight="450" 
            Filter="Image Files (*.gif;*.jpg;*.jpeg;*.png)|*.gif;*.jpg;*.jpeg;*.png|Text Files (*.txt)|*.txt|All Files(*.*)|*.*" 
            FilterIndex="0"   
            IsAutomaticUpload="false"   
            OverwriteExistingFiles="False" 
            UploadServiceUrl="Handlers/upload.ashx" 
            TargetFolder="~/upload" 
            MaxFileSize="10000000">  
        </telerikInput:RadUpload> 
        <StackPanel Margin="0" x:Name="UploadedFileSelection" Height="450" VerticalAlignment="Top" Grid.Column="1" Grid.RowSpan="2" > 
          
    </StackPanel> 
    <ScrollViewer Grid.Column="2"></ScrollViewer> 
        <StackPanel Margin="0"  Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" Orientation="Horizontal"  > 
        <Button HorizontalAlignment="Right" Margin="10,0,0,0" Height="20"  Content="Categorieen koppelen" Padding="10,3" Click="LinkCategories" /> 
        <Button HorizontalAlignment="Right" Margin="10,0,0,0" Height="20" Content="Afsluiten" Padding="10,3"/>  
        </StackPanel> 
    </Grid> 
</UserControl> 

on the main page...

       <my:MultiUploadControl x:Name="MultiUpload" Canvas.Left="22" Width="980" Canvas.Top="200"></my:MultiUploadControl>   
  

kind regards,

frans

1 Answer, 1 is accepted

Sort by
0
frans van Ek
Top achievements
Rank 1
answered on 02 Oct 2009, 01:59 PM
Hi,

i found the problem. Nothing to do with the upload control. Some control with opacity 0 was blocking the control.

sorry for the inconvienence

frans
Tags
Upload
Asked by
frans van Ek
Top achievements
Rank 1
Answers by
frans van Ek
Top achievements
Rank 1
Share this question
or