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

FileFilter failed to work under RadWindow

3 Answers 120 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Thanh Dang
Top achievements
Rank 2
Thanh Dang asked on 01 Aug 2011, 08:22 AM
Hello

My RadAsyncUpload works normally when the page is access directly. But when the page is under a RadWindow then the RadAsyncUpload failed to filter file extensions.

I've tried on IE and Chrome, and the same results.

Here's my code snippet for RadAsyncUpload:
<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" AutoAddFileInputs="False" onfileuploaded="RadAsyncUpload1_FileUploaded" TargetFolder="~/Central/Images/" AllowedMimeTypes="jpg, jpeg, bmp, png">
  <FileFilters>
     <telerik:FileFilter Description="Images (jpg, jpeg, bmp, png)" Extensions="jpg, jpeg, bmp, png" />
  </FileFilters>
</telerik:RadAsyncUpload>

I hope this can be fixed... not a bug.

Can somebody help me.

Thanks in advance
Thanh Dang

3 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 03 Aug 2011, 03:59 PM
Hello Thanh Dang,

I am unable to reproduce the issue with the following set up:

<telerik:RadWindow runat="server" VisibleOnPageLoad="true">
    <ContentTemplate>
        <telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1">
            <FileFilters>
                <telerik:FileFilter Description="foo" Extensions="jpg,jpeg" />
            </FileFilters>
        </telerik:RadAsyncUpload>
    </ContentTemplate>
</telerik:RadWindow>

Is the issue reproducible on your side all the time?

All the best,
Genady Sergeev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Thanh Dang
Top achievements
Rank 2
answered on 03 Aug 2011, 04:30 PM
Yes it acts this strange way all the time.

More details here. I building a page with image upload feature in it, says NewThread.aspx, as below:
<telerik:RadDockLayout ID="RadDockLayout1" runat="server"
        StoreLayoutInViewState="False">
   <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="100%"
            Width="100%" BorderStyle="None">
      <telerik:RadDock ID="RadDock1" runat="server" Width="100%"
                DefaultCommands="ExpandCollapse" DockMode="Docked" EnableDrag="False"
                EnableRoundedCorners="True" AutoPostBack="True">
         <ContentTemplate>
            <table class="detail">
           ...
               <tr>
                  <td class="labelTitle">Select picture:</td>
                   <td colspan="3" style="margin-left: 40px" class="text">
                      <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" AutoAddFileInputs="False"
                                    onfileuploaded="RadAsyncUpload1_FileUploaded"
                                    TargetFolder="~/Central/Images/" AllowedMimeTypes="jpg, jpeg, bmp, png">
                         <FileFilters>
                            <telerik:FileFilter Description="Images (jpg, jpeg, bmp, png)"
                                            Extensions="jpg, jpeg, bmp, png" />
                         </FileFilters>
                       </telerik:RadAsyncUpload>
                    </td>
                 </tr>
             </table>
       </ContentTemplate>
     </telerik:RadDock>

From another page, says Home.aspx, I click a button to open a RadWindow using RadWindowManager:
protected void RbtNewThread_Click(object sender, EventArgs e)
 {
    var newwindow = new RadWindow
           {
              ID = "NewThread",
              Modal = true,
              MinWidth = 800,
              MinHeight = 200,
              AutoSize = true,
              NavigateUrl = "~/NewThread.aspx",
              VisibleOnPageLoad = true
            };
    WindowManager.Windows.Add(newwindow);
}

The Window open, and I click on RadAsycnUpload select button, the select file dialog appears as the screen shot below: http://i34.photobucket.com/albums/d130/thanhma/8-3-201110-08-45PM.png

That's the result when I open the page using Chrome 12 (and it now turns 13...), IE9 and Firefox 5 the same.

Is there something special here?
0
Peter Filipov
Telerik team
answered on 08 Aug 2011, 01:42 PM
Hello Thanh,

Only with Flash/Silverlight module is possible to filter the dialog window.
We are aware of that issue. It happens when Silverlight module is used. The issue is out of our hands. Even though the dialog window is not filtered, the extension validation works nevertheless.


Kind regards, Peter Filipov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
AsyncUpload
Asked by
Thanh Dang
Top achievements
Rank 2
Answers by
Genady Sergeev
Telerik team
Thanh Dang
Top achievements
Rank 2
Peter Filipov
Telerik team
Share this question
or