<
body
>
<
script
type
=
"text/javascript"
>
function OnClientItemShown(sender, eventArgs) {
var idx = eventArgs.get_item().get_index();
var oRotator = document.getElementById("<%= RadRotator2.ClientID %>");
alert(oRotator);
oRotator.set_currentItemIndex('1');
}
</
script
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
</
telerik:RadScriptManager
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
</
telerik:RadAjaxManager
>
<
div
>
<
br
/><
br
/>
<
telerik:RadRotator
runat
=
"server"
DataSourceID
=
"xmlDataSource1"
ID
=
"rotator1"
OnClientItemShown
=
"OnClientItemShown"
ScrollDirection
=
"Left"
SlideShowAnimation-Type
=
"Fade"
RotatorType
=
"SlideShow"
FrameDuration
=
"6000"
Width
=
"955px"
ItemWidth
=
"955px"
Height
=
"398px"
ItemHeight
=
"398px"
>
<
ItemTemplate
>
<
div
class
=
"itemTemplate"
>
<
img
src
=
"<%# XPath("
Image") %>" alt="<%# XPath("Title") %>" style="border: 0px;" />
</
div
>
</
ItemTemplate
>
</
telerik:RadRotator
>
<
br
/><
br
/>
<
div
class
=
"xscrollContainer"
>
<
telerik:RadRotator
runat
=
"server"
DataSourceID
=
"xmlDataSource2"
ID
=
"RadRotator2"
ScrollDirection
=
"Left"
SlideShowAnimation-Type
=
"Fade"
RotatorType
=
"SlideShow"
FrameDuration
=
"6000"
Width
=
"390px"
ItemWidth
=
"390px"
Height
=
"30px"
ItemHeight
=
"30px"
>
<
ItemTemplate
>
<
div
class
=
"itemTemplate"
>
<%# XPath("Title") %>
</
div
>
</
ItemTemplate
>
</
telerik:RadRotator
>
</
div
>
<
br
/><
br
/>
</
div
>
<
asp:XmlDataSource
ID
=
"xmlDataSource1"
runat
=
"server"
DataFile
=
"photos.xml"
></
asp:XmlDataSource
>
<
asp:XmlDataSource
ID
=
"xmlDataSource2"
runat
=
"server"
DataFile
=
"titles.xml"
></
asp:XmlDataSource
>
Hi. Here's my scenario:
One RadProgressArea and one RadProgressManager and one button on my aspx page. I want to monitor the call to my simple web service and display time until process is complete.
Here is C# code behind for button onClick event:
public partial class IISProcess : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
RadProgressArea1.Localization.UploadedFiles = "Completed Steps: ";
RadProgressArea1.Localization.CurrentFileName = "Step: ";
RadProgressArea1.Localization.TotalFiles = "Total Steps: ";
}
}
protected void myProgressButton_Click(object sender, EventArgs e)
{
UpdateProgressContext();
}
private void UpdateProgressContext()
{
RadProgressContext progress = RadProgressContext.Current;
IIS_1 IISWebService = new IIS_1();
string theOrder = "0038240";
IISWebService.GetOrdersFromIIS(theOrder);
}
}
My question is how can I monitor my web service process via the RadProgressArea control ???? What is missing in my code?
Thank You in advance.