I'm kinda wondering. I ran into the trouble with upload and ajax (which as I understand is not working). I followed the example of:
http://www.telerik.com/help/aspnet-ajax/upload_uploadingajax.html
But I still have no proper upload. Basicly I have a tabbed control ajaxfied. I created a small sample demonstrating where I am now:
-- aspx
<%
@ Page Language="vb" AutoEventWireup="false" CodeBehind="test.aspx.vb" Inherits="cms2009beheer.test" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head runat="server">
<title>Untitled Page</title>
</
head>
<
body>
<form id="form1" runat="server">
<radscriptblock id="RadScriptBlock1" runat="server">
<script type="text/javascript">
// on upload button click temporarily disables ajax to perform
// upload actions
function conditionalPostback(sender, args)
{
if(args.EventTarget == "<%= Button1.UniqueID %>")
{
args.EnableAjax =
false;
}
}
</script>
</
radscriptblock>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
Width="75px">
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
style="border: 0px;" />
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableHistory="True"
DefaultLoadingPanelID="RadAjaxLoadingPanel1">
<ClientEvents OnRequestStart="conditionalPostback" />
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadTabStrip1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" MultiPageID="RadMultiPage1">
<Tabs>
<telerik:RadTab Text="t1">
</telerik:RadTab>
<telerik:RadTab Text="t2">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
<telerik:RadPageView runat="server" ID="p1">
<telerik:RadUpload ID="RadUpload1" runat="server" />
<asp:Button ID="Button1" runat="server" Text="Button" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</telerik:RadPageView>
<telerik:RadPageView runat="server" ID="p2">
just a sample
</telerik:RadPageView>
</telerik:RadMultiPage>
</form>
</
body>
</
html>
-- vb
Partial
Public Class test
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
If RadUpload1.UploadedFiles.Count > 0 Then
System.Threading.Thread.Sleep(3000)
End If
e
nd Sub
End
Class
This is just a simple test to see if I can touch the uploaded files