or
| //init part for control generation... |
| string initScriptTemplate = "<script type='text/javascript'>{0}</script>"; |
| string postBackEvent = Page.ClientScript.GetPostBackEventReference(this, "arg"); |
| postBackEventpostBackEvent = postBackEvent.Replace("'arg'", "arg"); |
| string callBackEvent = Page.ClientScript.GetCallbackEventReference(this, "arg", "CallbackResult", "context", false); |
| string callbackFunc = string.Format("function {0}_doCallback(arg, context) {{ {1}; }}", this.ClientID, callBackEvent); |
| string postbackFunc = string.Format("function {0}_doPostback(arg) {{ {1}; }}", this.ClientID, postBackEvent); |
| string postbackCall = string.Format("{0}_doPostback", this.ClientID); |
| string callbackCall = string.Format("{0}_doCallback", this.ClientID); |
| //string initCodeTemplate = "var {1} = new REACH.ModalPopupControl(\"{0}\",\"{1}\",{2},{3},\"{4}\")"; |
| string initCodeTemplate = "var app = Sys.Application; app.add_init(function() {{ $create( REACH.ModalPopupControl, {{id:\"{0}\", _radwindowId:\"{1}\", _postbackFunction: {2}, _callbackFunction: {3} }}, null, null ); }});"; |
| object[] items = { this.CallerID, this.RadWindowID, postbackCall, callbackCall }; |
| StringBuilder sb = new StringBuilder(); |
| sb.AppendFormat(initCodeTemplate, items); |
| sb.AppendLine(""); |
| sb.AppendLine(callbackFunc); |
| sb.AppendLine(postbackFunc); |
| string initScript = string.Format(initScriptTemplate, sb.ToString()); |
| <telerik:AjaxSetting AjaxControlID="SummaryGrid"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="SummaryGrid"/> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| <telerik:RadGrid ID = "SummaryGrid" runat="server" AllowSorting="true" AutoGenerateColumns="false" OnExcelMLExportRowCreated="ExportRowCreated" |
| Width="900px" Height="280" GridLines="none" OnNeedDataSource="SummaryGridNeedsData" Skin="Telerik"> |
| <MasterTableView GroupLoadMode="Client"> |
| <Columns> |
| <!-- 5 GridGoundColumns !--> |
| </Columns> |
| <NoRecordsTemplate> |
| <div>There are no articles to Display</div> |
| </NoRecordsTemplate> |
| </MasterTableView> |
| <ClientSettings AllowGroupExpandCollapse="true" ReorderColumnsOnClient="true" AllowColumnsReorder="true" AllowDragToGroup="true"> |
| <Scrolling AllowScroll="True" UseStaticHeaders="true" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| SummaryGrid.ExportSettings.FileName = "Test.xls"; |
| SummaryGrid.ExportSettings.ExportOnlyData = true; |
| SummaryGrid.ExportSettings.OpenInNewWindow = true; |
| SummaryGrid.ExportSettings.IgnorePaging = true; |
| SummaryGrid.ExportSettings.Excel.Format = |
| Telerik.Web.UI.GridExcelExportFormat.ExcelML; |
| SummaryGrid.MasterTableView.ExportToExcel(); |
| <table cellspacing="0" cellpadding="0" border="0" width="100%" height="100%"> |
| <tr style="width: 100%; height: 100%"> |
| ... |
| <td style="width: 100%; height: 100%"> |
| <table id="_ctl8" cellspacing="0" cellpadding="0" border="0" width="100%" height="100%"> |
| <tr height="100%"> |
| <td height="100%"> |
| <table id="_ctl10" class="crpObjectBorder" cellspacing="0" cellpadding="0" border="0" |
| width="100%" height="100%"> |
| <tr> |
| <td> |
| <table class="crpTabBar" cellspacing="0" cellpadding="1" border="0" width="100%" |
| height="100%"> |
| <tr> |
| <td class="bottomborder titleBar" id="pageTitle"> |
| Search results |
| </td> |
| </tr> |
| <tr style="height: 100%; width: 100%"> |
| <td class="crpDataPanel" style="height: 100%; width: 100%"> |
| <div id="divRadGrid" style="height: 100%; width: 100%"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1" |
| OnAjaxSettingCreated="RadAjaxManager1_AjaxSettingCreated"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="gridSearchResOrders"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="gridSearchResOrders" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| <telerik:AjaxSetting AjaxControlID="gridSearchResOrderLines"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="gridSearchResOrderLines" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" |
| Width="75px" Transparency="10"> |
| <img alt="Loading..." src="../images/loading.gif" style="border: 0px;" /> |
| </telerik:RadAjaxLoadingPanel> |
| <telerik:RadSplitter ID="Splitter" runat="server" Width="100%" Height="100%" Orientation="Horizontal"> |
| <telerik:RadPane ID="RadPane" runat="server" Height="100%" Width="100%" BorderStyle="None"> |
| <!-- Grid: Orders search results --> |
| <telerik:RadGrid ID="gridSearchResOrders" runat="server" GridLines="None" AllowPaging="True" |
| ImagesPath="~/styles/Grid" AllowSorting="True" AutoGenerateColumns="False" OnNeedDataSource="gridSearchResOrders_NeedDataSource" |
| Skin="MyGray" EnableAJAX="true" EnableEmbeddedSkins="False" BorderWidth="1" Width="100%" Height="100%" |
| HorizontalAlign="Center" EnableEmbeddedBaseStylesheet="False" AllowMultiRowEdit="false"> |

| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadProgressManager ID="RadProgressManager1" runat="server" EnableEmbeddedBaseStylesheet="False" |
| EnableEmbeddedSkins="False" UniquePageIdentifier="6e458f0c-2140-40dd-8e9d-6d21479f7747" /> |
| <div> |
| <telerik:RadUpload ID="RadUpload1" runat="server" Skin="Office2007"> |
| </telerik:RadUpload> |
| <br /> |
| <br /> |
| <telerik:RadProgressArea ID="RadProgressArea1" runat="server" Skin="Outlook"> |
| <Localization Uploaded="Uploaded" /> |
| </telerik:RadProgressArea> |
| </div> |
| <br /> |
| <br /> |
| <asp:Button ID="Button1" runat="server" Text="Button" /> |
| </form> |
Now, if I click on the button, the upload is initiated but no progress bar appears. Am I missing something?
Thanks.
RadFileExplorer is the newest addition to the RadControls for ASP.NET AJAX suite. The control will officially be available in RadControls for ASP.NET AJAX Q1 2009.
RadFileExplorer for ASP.NET AJAX allows you to easily add a file explorer functionality to your pages providing your users with the ability to organize files and folders directly from the web page.
Main features: