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

RadUpload in RadWindow

3 Answers 38 Views
Window
This is a migrated thread and some comments may be shown as answers.
orim
Top achievements
Rank 1
orim asked on 09 Oct 2012, 12:58 PM
hi,
i want to implement a small solution for uploading csv files.
i put a radupload inside radwindow - Problem: i need to keep the radwindow open "onclick" the "Submit" button.
I know i need a postback for radupload but Is there any solution to keep the radwindow open after postback.
I triied it with ajax but it doesnt work
Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 10 Oct 2012, 09:37 AM
Hi Orim,

Try the following code to achieve your scenario.

ASPX:
<telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="Default.aspx" VisibleOnPageLoad="true">
  <ContentTemplate>
    <telerik:RadUpload runat="server"  ID="RadUpload1" AllowedFileExtensions="csv" TargetFolder="~/Uploads/">
    </telerik:RadUpload>
    <asp:Button runat="server" ID="Button1" Text="Upload" onclick="Button1_Click" />
  </ContentTemplate>
</telerik:RadWindow>

Hope this helps.

Thanks,
Princy.
0
Accepted
rdmptn
Top achievements
Rank 1
answered on 10 Oct 2012, 10:49 AM
Or create a separate page for your RadUpload that you can load in the RadWIndow with its NavigateUrl property. It will be a separate context, so you an upload files independently from the main page.
0
Waseem
Top achievements
Rank 1
answered on 14 Oct 2012, 01:41 AM
hi Dear, Always take care mime type as well and don't overwrite your existing file.

<telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="Default.aspx" VisibleOnPageLoad="true">
  <ContentTemplate>
    <telerik:RadUpload runat="server"  ID="RadUpload1" OverwriteExistingFiles="false" AllowedMimeTypes="text/csv"  AllowedFileExtensions="csv" TargetFolder="~/Uploads/">
    </telerik:RadUpload>
    <asp:Button runat="server" ID="Button1" Text="Upload" onclick="Button1_Click" />
  </ContentTemplate>
</telerik:RadWindow>

Regards
Muhammad Waseem
Tags
Window
Asked by
orim
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
rdmptn
Top achievements
Rank 1
Waseem
Top achievements
Rank 1
Share this question
or