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

radwindow as progress indicator...

2 Answers 151 Views
Window
This is a migrated thread and some comments may be shown as answers.
Thomas Lang
Top achievements
Rank 1
Thomas Lang asked on 02 Jan 2011, 08:16 PM
Hello,

the situation:

display a modal window with content template to show progres of an asynch page load
i.e:

 

<telerik:RadWindow VisibleTitlebar="false"
ID="AccountLoadProgressWnd" runat="server" Modal="true" ReloadOnShow="true" VisibleStatusbar="false" Behaviors="None" >

 

 

<ContentTemplate >

 

 

Loading account <span id='percentageComplete' ></span>

 

 

</ContentTemplate>

 

 

</telerik:RadWindow>

2) main page performs x number of ajax requests to load info on underlying page

Question:

i want to reference the <span id='percentageComplete' ></span>
element in the modal window.

How do i do it?

 

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Jan 2011, 09:12 AM
Hello Thomas,


I hope the following demo would shed some light in accomplishing the functionality for you.
Window / Use as controls container



-Shinu.
0
Georgi Tunev
Telerik team
answered on 03 Jan 2011, 09:22 AM
Hi Thomas,

The SPAN element is a standard HTML container, so you could use document.getElementByID or $get:

<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<telerik:RadWindow VisibleTitlebar="false" ID="AccountLoadProgressWnd" runat="server"
    Modal="true" ReloadOnShow="true" VisibleOnPageLoad="true" VisibleStatusbar="false"
    Behaviors="None">
    <ContentTemplate>
        Loading account: <span id='percentageComplete'></span>
    </ContentTemplate>
</telerik:RadWindow>
<button onclick="updateInfo(); return false;">
    update info</button>
<script type="text/javascript">
    function pageLoad()
    {
        var spanContainer = $get("percentageComplete");
        spanContainer.innerHTML = " <strong>User Account </strong>";
    }
 
</script>
</form>


All the best,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Window
Asked by
Thomas Lang
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or