This is a migrated thread and some comments may be shown as answers.
progress bar not showing
4 Answers 95 Views
This is a migrated thread and some comments may be shown as answers.
cielo valdoz
Top achievements
Rank 1
cielo valdoz asked on 23 Apr 2010, 05:02 AM

Hi,

I used the code in your demo page but the progress bar is not showing even if the browser is IE and i uploaded large file. Did i missed code or something? I traced the code but it doesnt fall in function onClientProgressBarUpdating

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="EgsUploadDbase.WebForm1" %> 
<%@ register tagprefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" %> 
 
<!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></title>  
</head> 
<body> 
     <form runat="server" id="mainForm" method="post">  
 
        <script type="text/javascript">  
            function onClientProgressBarUpdating(progressArea, args) {  
                progressArea.updateVerticalProgressBar(args.get_progressBarElement(), args.get_progressValue());  
                args.set_cancel(true);  
            }  
 
        </script> 
 
        <telerik:RadScriptManager id="ScriptManager1" runat="server" /> 
          
        <table width="754">  
            <tr> 
                <td colspan="2">  
                    To see the progress area, please upload a large file.   
                </td> 
            </tr> 
              
            <tr> 
                <td style="vertical-align: top;">  
                    <telerik:radupload id="Radupload1" runat="server" initialfileinputscount="2" /> 
<asp:button id="buttonSubmit" runat="server" text="Submit" onclick="buttonSubmit_Click" 
cssclass="RadUploadSubmit" /> 
                </td> 
                <td style="vertical-align: top;">  
              
                    <div class="smallModule">  
                        <div class="rc1"><div class="rc2"><div class="rc3" style="width:240px">  
                              
                            <asp:Label id="labelNoResults" runat="server" visible="True">No uploaded files yet</asp:Label> 
                            <asp:Repeater id="reportResults" runat="server" visible="False">  
                                <HeaderTemplate> 
                                    <span>Uploaded files:</span><br /> 
                                </HeaderTemplate> 
                                <ItemTemplate> 
                                    '<%#DataBinder.Eval(Container.DataItem, "FileName")%>' (<%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>)<br /> 
                                </ItemTemplate> 
                            </asp:Repeater> 
                              
                        </div></div></div> 
                    </div> 
                </td> 
            </tr> 
        </table> 
          
        <telerik:RadProgressManager id="Radprogressmanager1" runat="server" /> 
          
        <telerik:RadProgressArea id="RadProgressArea1" runat="server" onClientProgressBarUpdating="onClientProgressBarUpdating" > 
        
 
        </telerik:RadProgressArea> 
        <br /> 
        <br /> 
    </form> 
 
</body> 
</html> 
 

Public Class WebForm1  
    Inherits System.Web.UI.Page  
 
    Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
 
    End Sub 
    Protected Sub buttonSubmit_Click(ByVal sender As ObjectByVal e As System.EventArgs)  
        BindResults()  
    End Sub 
    Private Sub BindResults()  
        If Radupload1.UploadedFiles.Count > 0 Then 
            labelNoResults.Visible = False 
            reportResults.Visible = True 
            reportResults.DataSource = Radupload1.UploadedFiles  
            reportResults.DataBind()  
        Else 
            labelNoResults.Visible = True 
            reportResults.Visible = False 
        End If 
    End Sub 
 
End Class 

4 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 23 Apr 2010, 05:27 PM
Hi cielo valdoz,

Please make sure that you have registered the RadUploadHttpHandler and the RadUploadHttpModule in the web.config. Detailed instructions on how to do this can be found here.

Regards,
Genady Sergeev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Hassan Yasir
Top achievements
Rank 1
answered on 23 Apr 2010, 10:01 PM
In most of the cases you may not be able to see progress bar while you're running the application on your local server.
Have you tried it on your web server?

If it is still not working, checkout your IIS version. If it's 7, checkout whether you've entered the correct handlers under <system.webServer>.

If it is also okay, checkout whether you have Application's Full Trust. This component will not work under medium trust.
If you're web server supports full trust, make these changes to your web.config file:
<system.web>  
    <trust level="Full" />  
</system.web>  


Hope any of one solution mentioned above would help you.

Best of luck

!!!!Tekie!!!!
0
SK
Top achievements
Rank 1
answered on 15 Dec 2012, 08:12 PM
We are also trying to use the RadProgressArea. It looks like (from what you are saying) it does not work on the medium trust computers. I want to install it on shared server where full trust may not be available.

Is there a way to switch to a fixed image on computers that does not ahve full trust?

Thanks
SK
0
Plamen
Telerik team
answered on 20 Dec 2012, 07:32 AM
Hello SK,

 
We are not aware of any workaround for this issue. Please let us know if you could think of a possible solution in you r further research.

Regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Asked by
cielo valdoz
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Hassan Yasir
Top achievements
Rank 1
SK
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or