or
I have a problem everytime i execute the code to open the radwindow, it open multiple times
1ste time it open 1 time
If i close the windows and execute the the code again i get 2 windows ... and so on
Radwindowmanager:
| <telerik:RadWindowManager ID="Menuradwindow" runat="server"> |
| </telerik:RadWindowManager> |
Execute window :
| Dim newWindow As New RadWindow() |
| newWindow.NavigateUrl = "~/admin/content/delete_page.aspx?PageID=" + panelBarValue |
| newWindow.VisibleOnPageLoad = True |
| newWindow.Width = "550" |
| newWindow.Height = "350" |
| newWindow.Title = "Pagina Verwijderen" |
| Menuradwindow.Windows.Add(newWindow) |
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> var currentLoadingPanel = null; var btSubmit = null; function RequestStart(sender, args) { currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID%>"); btSubmit = "<%= panlcomments.ClientID %>"; //show the loading panel over the updated control currentLoadingPanel.show(btSubmit); } function ResponseEnd() { //hide the loading panel and clean up the global variables currentLoadingPanel.hide(btSubmit); //clear btSubmit.SetHtml(""); currentLoadingPanel = null; btSubmit = null; } </script> </telerik:RadCodeBlock> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="btSubmit"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="newCommentLiteral" LoadingPanelID="RadAjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="panlcomments" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" /> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="Center" Skin="Vista"> </telerik:RadAjaxLoadingPanel> <asp:Literal ID="existingComments" runat="server"></asp:Literal> <asp:Literal ID="newCommentLiteral" runat="server"></asp:Literal> <!-- on masque le control pour les anonymes --> <asp:Panel ID="panlcomments" runat="server"> <div class="exp-comment-message"><asp:Label ID="lblMessage" Text="Messages :" runat="server"></asp:Label></div> <telerik:RadEditor ID="reComment" runat="server" EditModes="Design" ToolbarMode="ShowOnFocus" ToolsWidth="170px" Width="350px" Height="100px" > <Tools> <telerik:EditorToolGroup> <telerik:EditorTool Name="Bold" /> <telerik:EditorTool Name="Italic" /> <telerik:EditorTool Name="StrikeThrough" /> <telerik:EditorTool Name="Underline" /> <telerik:EditorTool Name="InsertUnorderedList" /> <telerik:EditorTool Name="InsertOrderedList" /> </telerik:EditorToolGroup> </Tools> </telerik:RadEditor> <span class="exp-bout-comm"><asp:Button ID="btSubmit" runat="server" Text="Valider" OnClick="btSubmit_Click" CssClass="Exp-Comment-Submit"/></span> </asp:Panel>
protected override void OnInit(EventArgs e) { Page.Init += delegate(object sender, EventArgs e_Init) { if (RadScriptManager.GetCurrent(Page) == null) { RadScriptManager sMgr = new RadScriptManager(); Page.Form.Controls.AddAt(0, sMgr); } string formOnSubmitAtt = this.Page.Form.Attributes["onsubmit"]; try { if (!string.IsNullOrEmpty(formOnSubmitAtt) && formOnSubmitAtt == "return _spFormOnSubmitWrapper();") { Page.Form.Attributes["onsubmit"] = "_spFormOnSubmitWrapper();"; } } catch { } try { if (btSubmit == null) btSubmit = this.FindControl("btSubmit") as Button; if (reComment == null) reComment = this.FindControl("reComment") as RadEditor;

<asp:Label ID="lblKey" runat="server" Text="Key" Font-Size="XX-Small" ForeColor="Blue" Font-Underline="true" style="cursor:pointer"></asp:Label> <telerik:RadToolTipManager ID="radEdlvl" runat="server" Position="MiddleLeft" Animation="Fade" Width="100px" Height="200px" RelativeTo="Element" HideDelay="20" Text="Hello" >service, dont know if this will work but cant even see if it works wil the label on page. <WebMethod()> _ Public Function GetToolTip() As String sql = "Select strEducationCode + ' - ' + strEducation from Education order by strEducationCode" myDataTable = New DataTable myDataTable = getReader(sql) If myDataTable.Rows.Count > 0 Then GetToolTip = myDataTable.ToString Else GetToolTip = Nothing End If GetToolTip() End Function