Hi.
Please could you assist. My radwindow seems to load the entire page inside the popup (with menu, footer etc) instead of just the controls. Screenshot and code below.
Any help will be appreciated.
Clientside code: shows popup on image click
server code: Radwindow declaration
Please could you assist. My radwindow seems to load the entire page inside the popup (with menu, footer etc) instead of just the controls. Screenshot and code below.
Any help will be appreciated.
Clientside code: shows popup on image click
var BaseURL = "<%= WindowBaseURL%>"; function ShowSearchForm() { var toolBar = $find("<%=toolbarInstruments.ClientID%>"); var tbButton = toolBar.findItemByText("exchange"); var cbo = tbButton.findControl("cboExchange"); if ('<%=IsMobile%>' == 'True') { var navURL; navURL = BaseURL + "&EX=" + cbo.get_value(); //location.href = navURL; window.location.href = navURL; } else { //Open the RADWindow var params = document.getElementById('<%=hfParams.ClientID%>').value; var symbolmanager = $find("<%= rwmWatchlist.ClientID %>"); var toolBar = $find("<%=toolbarInstruments.ClientID%>"); var tbButton = toolBar.findItemByText("exchange"); var cbo = tbButton.findControl("cboExchange"); var navURL; navurl = BaseURL + '&EX=' + cbo.get_value(); symbolmanager.open(navurl , "FindDialog"); symbolmanager.SetTitle("Search"); return false; } };server code: Radwindow declaration
<telerik:RadWindowManager ID="rwmW" runat="server" EnableShadow="true"> <windows> <telerik:RadWindow ID="FindDialog" Title="Instrument Lookup" runat="server" Modal="true" ReloadOnShow="True" Overlay="True" KeepInScreenBounds="True" Behaviors="Close,Move,Resize" OnClientClose="OnClientClose" ShowContentDuringLoad="false" EnableShadow="false" VisibleStatusbar="false" AutoSize="False" VisibleOnPageLoad="False" rendermode="lightweight" width="1042px" EnableEmbeddedSkins="true"/> </windows> </telerik:RadWindowManager>
Public ReadOnly Property WindowBaseURL As String Get If IsMobile Then Return String.Format("{0}/mid/{1}?{2}", DotNetNuke.Common.Globals.NavigateURL("Search"), Me.ModuleId, "popUp=false") Else Return UrlUtils.PopUpUrl(EditUrl("Search"), Me, PortalSettings, False, True) End If End Get End Property