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?
on the main page...
kind regards,
frans
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