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

RadProgressArea in a Usercontrol

7 Answers 71 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Balamurali Venkatesan
Top achievements
Rank 1
Balamurali Venkatesan asked on 17 Sep 2009, 04:49 PM
Hi,

We are actually trying to display a progress bar on a button click event in a user control which has radajaxmanagerproxy.We have a radajaxmanager in th epage which holds the user control.
But for no reason the RadProgressaraea is not showing up at all.
Below is the code snippet for the same

User Control with RadAjaxmanagerProxy
----------------------------------------------------

<telerik:radajaxmanagerproxy id="radAjaxMgrQCMapping" runat="server">
     <AjaxSettings>
           
            <telerik:AjaxSetting AjaxControlID="btnMap">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radProgressManager1" LoadingPanelID="radAjaxLoadPnlUnmappedItems"/>
                    <telerik:AjaxUpdatedControl ControlID="radProgressArea1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:radajaxmanagerproxy>

<

 

telerik:RadProgressManager id="radProgressManager1" runat="server" RefreshPeriod="5" />

 

 

<telerik:RadProgressArea id="radProgressArea1" runat="server" DisplayCancelButton="False"

 

 

ProgressIndicators="TimeElapsed">

 

 

</telerik:RadProgressArea>

CodeBehind file:
--------------------------

 

public

 

void UpdateProgressContext(StringBuilder projectStatus)

 

{

 

RadProgressContext context = RadProgressContext.Current;

 

context.SecondaryTotal = 100;

 

for (int i = 1; i < 100; i++)

 

{

context.SecondaryValue = i;

context.SecondaryPercent = i;

context.CurrentOperationText = projectStatus;

 

if (!Response.IsClientConnected)

 

{

 

//Cancel button was clicked or the browser was closed, so stop processing

 

 

 

 

 

break;

 

}

 

// simulate a long time performing the current step

 

 

 

 

 

Thread.Sleep(100);

 

}

}




Could you please provid eus a solution tio implement this functionality.

Thanks and Regards
V.Balamurali

7 Answers, 1 is accepted

Sort by
0
Balamurali Venkatesan
Top achievements
Rank 1
answered on 18 Sep 2009, 07:38 AM
Any Updates on this would be of great help.

Thanks and Regards
V.Balamurali
0
Genady Sergeev
Telerik team
answered on 22 Sep 2009, 03:37 PM
Hello Balamurali Venkatesan,

Do you want to monitor a file upload progress or a custom one? Can you try setting false to the EnableAjax property of the RadAjaxManager. Does the issue persist?

Sincerely yours,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Balamurali Venkatesan
Top achievements
Rank 1
answered on 23 Sep 2009, 07:34 AM
Hi,

We are actually trying to monitor a custom process.There is no EnableAjax property for radcontrols for asp.net ajax.
Also we are trying to implement this progress area in a usercontrol which has only radajaxmanagerproxy.The page that holds this usercontrol has the radjaxmanager.
Could you please let us know what could be the possibel reason for the progerssbar to not show up.

Thanks and Regards
V.Balamurali

0
Genady Sergeev
Telerik team
answered on 23 Sep 2009, 12:47 PM
Hello Balamurali Venkatesan,

I have attached a sample that is close to your scenario. However, keep in mind that you don't need RadAjaxManager when monitoring custom progress. RadProgressArea automatically uses AJAX to communicate with the server.

Greetings,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Balamurali Venkatesan
Top achievements
Rank 1
answered on 23 Sep 2009, 01:29 PM
Hi,

Thanks for the update.We'll try your sample application and let you know.But we need radajaxmanager as we need ajax functionlaity for other conterols that are used in the same user control.

Will your sample code work even if i have the radajaxmanagerproxy in the user control?

Thanks and Regards
V.Balamurali
0
Balamurali Venkatesan
Top achievements
Rank 1
answered on 23 Sep 2009, 01:35 PM
Hi,
Adding to the above mail, we also wanted to know where we need to define thwe RADProgresshandler. whether in the controls web.config or in the page's web.config. we suspect this si the issue.

Thanks and Regards
V.Balamurali
0
Genady Sergeev
Telerik team
answered on 24 Sep 2009, 07:39 AM
Hi Balamurali Venkatesan,

Referring to your scenario, RadProgressArea should work when the usercontrol that holds it is ajaxified. However, the fact that you don't see it indicates a problem. Perhaps it is in connection with the AJAX, that is why I have asked you to set EnableAJAX to false on the RadAjaxManager (not RadAjaxManagerProxy). However, the reason might be completely different.

As for the web.config, you can look at this help topic for a detailed instructions on how to register the proper handlers. Have in mind that you can use the smart tag of the RadProgressManager to register the handlers. He will do all the "dirty" job for you.

All the best,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Balamurali Venkatesan
Top achievements
Rank 1
Answers by
Balamurali Venkatesan
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or