I have switched from a singe page display to a radtabstrip with dynamically created tabs linked to radpageviews. Outside of all of this is a radtoolbar with controls that I need to control the currently opened radpageview.
Previously I had something like this in javascript:
What would I replace the window.frames(0).document with to get the currently open radpageview?
Here is the HTML of the pane containing the tabs and pageviews:
Previously I had something like this in javascript:
function DefaultRadToolBarClick(sender, args) { var button = args.get_item().get_value(); document.getElementById("txtAction").value = button; switch (button) { case "tbrRunQuery" : if ( window.frames(0).document.getElementById("loadingDiv")!= null) { window.frames[0].showLoading(true); } window.frames(0).document.getElementById("txtAction").innerText = button; window.frames(0).document.forms(0).submit() ; window.frames(0).document.getElementById("txtAction").innerText = "" ; break ; ...What would I replace the window.frames(0).document with to get the currently open radpageview?
Here is the HTML of the pane containing the tabs and pageviews:
<telerik:RadPane ID="DefaultRadPaneCont" runat="server">
<div class="content"> <telerik:RadTabStrip ID="DefaultRadTabStrip" align="left" Width="100%" runat="server" Skin="Office2007" MultiPageID="DefaultRadMultiPage"> <TabTemplate> <div class="textWrapper"> <%#DataBinder.Eval(Container, "Text")%> <img style="margin-left: 5px; margin-top: 5px" src="Images/delete.gif" alt="delete" onclick="deleteTab('<%# DataBinder.Eval(Container, "Text") %>')" /> </div> </TabTemplate> </telerik:RadTabStrip> <telerik:RadMultiPage ID="DefaultRadMultiPage" runat="server"> </telerik:RadMultiPage> </div> </telerik:RadPane>