Hello all,
I am wondering if anyone else has had issues with Mac users and showfile dialog. I am at a loss as I don't have a Mac to debug against. The user before would click the browse button and nothing would occur. So upon entering I try programmatically calling the show file dialog and get this error (see image). Any suggestions? Interestingly enough I had the user try the demo version on the site and the file dialog did appear.
I am wondering if anyone else has had issues with Mac users and showfile dialog. I am at a loss as I don't have a Mac to debug against. The user before would click the browse button and nothing would occur. So upon entering I try programmatically calling the show file dialog and get this error (see image). Any suggestions? Interestingly enough I had the user try the demo version on the site and the file dialog did appear.
<telerikNavigation:RadWindow x:Name="windowUploadFiles" WindowStartupLocation="CenterOwner" MaxHeight="800" Header="Upload Content" PreviewClosed="windowUploadFiles_PreviewClosed" Closed="windowUploadFiles_Closed" d:IsHidden="True"> |
<ScrollViewer VerticalScrollBarVisibility="Auto" telerik:ScrollViewerExtensions.EnableMouseWheel="True"> |
<Grid> |
<Grid.RowDefinitions> |
<RowDefinition Height="Auto"/> |
</Grid.RowDefinitions> |
<Grid.ColumnDefinitions> |
<ColumnDefinition/> |
<ColumnDefinition/> |
</Grid.ColumnDefinitions> |
<Border Grid.ColumnSpan="2" BorderBrush="DarkBlue" CornerRadius="5" VerticalAlignment="Top" BorderThickness="1" Background="{StaticResource PanelBackground}"> |
<Grid Margin="10"> |
<Grid.RowDefinitions> |
<RowDefinition Height="*"/> |
<RowDefinition Height="Auto"/> |
</Grid.RowDefinitions> |
<TextBlock TextWrapping="Wrap" Width="400" FontWeight="Bold" FontSize="12"><Run Text="Browse to select your files and click upload to start the importing process."/></TextBlock> |
<telerikInput:RadUpload Grid.Row="1" |
x:Name="RadUpload1" |
IsAutomaticUpload="False" |
OverwriteExistingFiles="True" |
HorizontalAlignment="Stretch" |
HorizontalContentAlignment="Right" |
VerticalAlignment="Top" |
FileUploaded="RadUpload1_FileUploaded" |
FilesSelected="RadUpload1_FilesSelected" |
UploadFinished="RadUpload1_UploadFinished" |
FileCountExceeded="RadUpload1_FileCountExceeded" |
FileTooLarge="RadUpload1_FileTooLarge" |
FileUploadFailed="RadUpload1_FileUploadFailed" |
UploadSizeExceeded="RadUpload1_UploadSizeExceeded" |
IsMultiselect="True" |
UploadCanceled="RadUpload1_UploadCanceled" |
/> |
</Grid> |
</Border> |
<StackPanel x:Name="spLoadingUploader" Grid.RowSpan="1" Grid.ColumnSpan="2" Visibility="Collapsed" > |
<StackPanel.Resources> |
<Storyboard x:Name="sbLoadingUploader"> |
<ColorAnimation Storyboard.TargetName="mySolidColorBrushUploader" |
Storyboard.TargetProperty="Color" |
From="#DDF0F0F0" To="#88AAAAFF" Duration="0:0:2" AutoReverse="True" RepeatBehavior="Forever" /> |
</Storyboard> |
</StackPanel.Resources> |
<StackPanel.Background> |
<SolidColorBrush x:Name="mySolidColorBrushUploader" Color="#DDF0F0F0" /> |
</StackPanel.Background> |
<TextBlock x:Name="tb_Uploader_LoadingMessage" Text="Please Wait While Processing Files..." HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontWeight="Bold" FontFamily="Portable User Interface" FontSize="16" Margin="0,50,0,0"> |
<TextBlock.Foreground> |
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> |
<GradientStop Color="#FF000000"/> |
<GradientStop Color="#FF154AF2" Offset="1"/> |
</LinearGradientBrush> |
</TextBlock.Foreground></TextBlock> |
</StackPanel> |
</Grid> |
</ScrollViewer> |
</telerikNavigation:RadWindow> |
RadUpload1.SetInitialUIState(); |
this.cUploadFileNames = new ObservableCollection<string>(); |
double serverVer = 0; |
string filter = "All Files(*.*)|*.*;|Power Point Files|*.pptx;*.ppt;*.potx;*.pot;|Word Files|*.docx;*.doc;|Excel Files|*.xlsx;*.xls;|PDF Files|*.pdf;|Flash Files|*.swf;"; |
RadUpload1.Filter = filter; |
RadUpload1.FilterIndex = 1; |
RadUpload1.UploadServiceUrl = WCF.cBaseDirectory + "/RadUploadHandler.ashx"; |
RadUpload1.TargetFolder = "temp"; |
RadUpload1.Items.Clear(); |
windowUploadFiles.Show(); |
windowUploadFiles.TopOffset = -150d; |
windowUploadFiles.WindowState = WindowState.Normal; |
RadUpload1.ShowFileDialog(); |