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

RadProgressManager gets "var rawProgressData = {InProgress:false,ProgressCounters:false};" to server on ajax postbacks

3 Answers 156 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Chit
Top achievements
Rank 1
Chit asked on 05 Mar 2009, 01:36 PM
Hi,

I have a form with several RadUpload controls. Also I have several buttons on the form. Some of the buttons are added to RadAjaxManager to get the ajax behaviour.

When I click on one of those button (included in RadAjaxManager), RadProgressManager continously requets data and gets "var rawProgressData = {InProgress:false,ProgressCounters:false};" message from server. But when I click on a file upload button (not included in RadAjaxManager), this behaviour is not appearing.

I have used Fiddler to identify this behaviour. Due to this, CPU is utilized and memory grows slowly with time.

I have checked all known solutions to me. But, it's simply not solved.

Do you have any idea about this?

3 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 06 Mar 2009, 11:40 AM
Hello Chit,

Consider using the following code to cancel the async postbacks:
RadProgressContext.Current.OperationComplete = true
i.e if ajaxified button is pressed cancel the progress monitoring. You can refer to this help article as well.

I hope this information helps.

Regards,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Chit
Top achievements
Rank 1
answered on 07 Mar 2009, 09:11 PM
Applied the change. Then the progress area is shown in the page.

the reply from the server is var rawProgressData = {InProgress:true,ProgressCounters:true,OperationComplete:'true'};.

Problem is solved, but now the problem is the mentioned progress area.


Any idea?
0
Genady Sergeev
Telerik team
answered on 10 Mar 2009, 08:45 AM
Hello Chit,

Indeed there is an issue with the progress area appearing. However, there exists a workaround using the client side events of RadProgressManager and RadProgressArea. In short you need to use a bool variable to notify whether the postback is regular or it is an AJAX one. If it's regular - show the area, otherwise hide the area ( using its hide() metod)  Please find sample project as an attachment.


Kind regards,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Upload (Obsolete)
Asked by
Chit
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Chit
Top achievements
Rank 1
Share this question
or