Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

RadProgressArea not representing files in RadAsynchUpload

$
0
0

Sorry if my original post wasn't clear. I am only using the RadProgressArea to monitor file uploads. Here is the basic layout of the page. Again, two panels that are toggled on and off so the cancel button isn't the cancel button included in the RadProgressArea. It's just a button that toggles the panels and does not actually upload the data. In the code behind, when this click event is triggered, I clear the uploaded files from the RadAsynchUpload. At that point the RadProgressArea no longer matches the RadAsynchUpload file list. It stays wherever it was when the cancel button was clicked.

 The best I can determine, this is happening because polling begins when I start uploading files and the data is being stored somewhere by the RadUploadHandler.ashx file. When I click cancel, the data stays in this file and the RadProgressArea is still reading the data. I could be way off base but I would think that if I could manually reset this data, I would be good to go.

 

Here is some basic code showing the structure of my page:

 <asp:Panel ID="pnlDocuments" runat="server">
      <asp:Button id="btnMultipleDocumentUpload" runat="server>
                Upload Multiple Documents
      </asp:button>
        <telerik:RadGrid ID="rgDocuments" runat="server">
            <ClientSettings>
                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
            </ClientSettings>
            <SortingSettings SortToolTip="" />
            <MasterTableView AllowCustomSorting="True" AllowSorting="True" AllowNaturalSort="false"
                AutoGenerateColumns="false" Width="100%" NoMasterRecordsText="No Documents to Display"
                TableLayout="Fixed">
                <SortExpressions>
                    <telerik:GridSortExpression FieldName="modified_dt" SortOrder="Descending" />
                </SortExpressions>
                <ItemStyle Wrap="false" />
                <Columns>
                    <telerik:GridTemplateColumn HeaderText="Document Name" ItemStyle-HorizontalAlign="Left"
                        UniqueName="document_name" SortExpression="document_name">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnDocumentName" runat="server" CommandName="open" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn HeaderText="Document Type" HeaderStyle-Width="130px" ItemStyle-HorizontalAlign="Left"
                        DataField="document_type" UniqueName="document_type" SortExpression="document_type" />
                    <telerik:GridDateTimeColumn HeaderText="Date Modified" HeaderStyle-Width="75px" ItemStyle-HorizontalAlign="Center"
                        DataField="modified_dt" UniqueName="modified_dt" SortExpression="modified_dt" DataType="System.DateTime"
                        DataFormatString="{0:MM/dd/yy}" />
                    <telerik:GridBoundColumn HeaderText="Attached By" HeaderStyle-Width="180px" ItemStyle-HorizontalAlign="Left"
                        DataField="modified_by_name" UniqueName="modified_by_name" SortExpression="modified_by_name" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </asp:Panel>

 <asp:Panel ID="pnlMultipleDocumentUpload" runat="server" Visible="false">
                            <telerik:RadAsyncUpload ID="rauMultipleDocument" runat="server" CssClass="MulitpleDocument"
                                MultipleFileSelection="Automatic" Skin="" Height="100%" UploadedFilesRendering="BelowFileInput"
                                HideFileInput="true" PostbackTriggers="btnMultipleDocumentUpload"
                                OnClientFileSelected="onClientMultipleFileSelected" OnClientFilesSelected="onClientMultipleFilesSelected"
                                OnClientFileUploaded="onClientMultipleFileUploaded" OnClientFilesUploaded="onClientMultipleFilesUploaded"
                                OnClientFileUploadRemoved="onClientMultipleFileUploadRemoved"
                                Style="float: left;">

                            <Localization Select="Select Documents..." />

                            </telerik:RadAsyncUpload>

                            <telerik:RadProgressArea runat="server" ID="rauMultipleDocumentProgressArea"
         ProgressIndicators="TotalProgress,TotalProgressPercent,TotalProgressBar,TransferSpeed,SelectedFilesCount,TimeElapsed"
                                Style="float: left;" />

 

<asp:Button ID="btnMultipleDocumentCancel" runat="server"
                        Text="Cancel" CausesValidation="false" />
                    <asp:Button ID="btnMultipleDocumentUpload" runat="server"
                        ClientIDMode="Static" Text="Upload" CausesValidation="false" Enabled="false" />​

</asp:Panel>

 

 


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>