or

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; } };<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
var varTitle = eventArgs.getDataKeyValue("title");var varInitialDate = eventArgs.getDataKeyValue("initial");var varEndDate = eventArgs.getDataKeyValue("end");var varPreview = eventArgs.getDataKeyValue("prev");var varContent = eventArgs.getDataKeyValue("content"); *** Opens the dialog ***$find('<%= Title.ClientID%>').set_value(varTitle);$find('<%= ID.ClientID%>').get_textBox().control.set_value(varInitialDate);$find('<%= ED.ClientID%>').get_textBox().control.set_value(varEndDate);$find('<%= Preview.ClientID%>').set_html(varPreview);$find('<%= Content.ClientID%>').set_html(varContent);