or
<telerik:RadWindowManager ID="WindowManager" runat="server" />
<table > <tr> <td valign="top"> <telerik:RadMenu ID="RadMenu1" Runat="server" Flow="Vertical"> <Items> <telerik:RadMenuItem Text="item 1"> <Items> <telerik:RadMenuItem Text="sub 1 1" /> <telerik:RadMenuItem Text="sub 1 2" /> <telerik:RadMenuItem Text="sub 1 3" /> </Items> </telerik:RadMenuItem> <telerik:RadMenuItem Text="item 2"> <Items> <telerik:RadMenuItem Text="sub 2 1" /> <telerik:RadMenuItem Text="sub 2 2" /> <telerik:RadMenuItem Text="sub 2 3" /> </Items> </telerik:RadMenuItem> <telerik:RadMenuItem Text="item 3"> <Items> <telerik:RadMenuItem Text="sub 3 1" /> <telerik:RadMenuItem Text="sub 3 2" /> <telerik:RadMenuItem Text="sub 3 3" /> </Items> </telerik:RadMenuItem> </Items> </telerik:RadMenu> </td> <td valign="top"> stuff<br /> <asp:Button ID="btnAlert" runat="server" Text="Alert" onclick="btnAlert_Click" /> </td> </tr></table>/// <summary>/// Recursively searches for a control with the specified ID./// </summary>protected Control FindControl(Control control, string id){ Control foundControl = control.FindControl(id); if (foundControl == null) { for (int index = 0; index < control.Controls.Count; index++) { Control childControl = control.Controls[index]; foundControl = FindControl(childControl, id); if (foundControl != null) { break; } } } return foundControl;}protected void btnAlert_Click(object sender, EventArgs e){ RadWindowManager windowManager = FindControl(this, "WindowManager") as RadWindowManager; if (windowManager != null) { windowManager.RadAlert("message", 400, null, "title", null); }}As soon as I add a Ajaxsetting programatically or through html I get the same error.
I have been stuck on this error some while now. I have browsed the forum for help, but cant seem to find a solution to my problem.
Adding a simple page that produces this error
Please help
<telerik:RadScheduler runat="server" ID="CalendarScheduler" DayStartTime="06:00:00" Culture="da-DK" AllowEdit="False" AllowDelete="False" GroupBy="User" DayEndTime="20:00:00" TimeZoneOffset="02:00:00" DataKeyField="ID" Format="HH:mm" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" InsertingInAdvancedForm="True" OverflowBehavior="Expand" ColumnWidth="50px" SelectedView="WeekView" ShowAllDayRow="False" ShowViewTabs="False" Height="414px" OnClientAppointmentInserting="OnClientAppointmentInserting" RowHeight="12px" OnAppointmentDataBound="RadScheduler1_OnAppointmentDataBound" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated" OnFormCreating="RadScheduler1_OnFormCreating" NumberOfHoveredRows="3" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" OnResourceHeaderCreated="RadScheduler1_ResourceHeaderCreated">

<script type="text/javascript"> function OnClientCommandExecuting(editor, args) { if ("Save" == args.get_commandName()) { alert("OnClientCommandExecuting Save"); args.set_cancel(true); } else if ("SaveAs" == args.get_commandName()) { alert("OnClientCommandExecuting SaveAs"); args.set_cancel(true); } } //EOF OnClientCommandExecuting </script> <telerik:RadEditor ID="telerikeditor" Runat="server" OnClientLoad="onClientLoad" OnClientCommandExecuting="OnClientCommandExecuting"> <Tools> <telerik:EditorToolGroup Tag="grpInputOutput"> <telerik:EditorTool ImageUrl="Images/radeditorSave.gif" Name="Save" ShowText="False" Text="Save" /> <telerik:EditorTool ImageUrl="Images/radeditorSaveAs.gif" Name="SaveAs" ShowText="False" Text="Save As" /> <telerik:EditorSeparator /> </telerik:EditorToolGroup> </Tools> <Content> </Content> </telerik:RadEditor> <script type="text/javascript">
//locate this script after the radeditor HTML declaration
RadEditorCommandList["Save"] = function(commandName, editor, oTool) { alert("RadEditorCommandList Save"); } </script>
function OnClientLoad(editor, args) { editor.get_contentAreaElement().style.height = 490px;}