I have developed the applicaion, i downloaded the code from forum that when i click insert appointment
it shold show the day view but it is giving ajax request error the code is
test.aspx
------------------------
<%
@ Page Language="C#" CodeBehind="Test.aspx.cs" AutoEventWireup="false" Inherits="AMS.Web.LMS.Test" %>
<%
@ Register Assembly="Telerik.Web.UI, Version=2009.1.527.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Boom</title>
</head>
<body bgcolor="aliceblue">
<script type="text/javascript">
function
OnClientTimeSlotClick(sender, eventArgs)
{
sender.showInsertFormAt(eventArgs.get_targetSlot());
}
function
onClientTimeSlotContextMenu(sender, eventArgs)
{
alert(
"sorry no operations");
}
//function OnClientRecurrenceActionDialogShowing(sender, eventArgs)
//{
//eventArgs.set_cancel(true);
//Edit this instance only:
//eventArgs.set_editSeries(false);
//Edit the entire series:
//eventArgs.set_editSeries(false);
//}
</
script>
<
form id="Form1" runat=server>
<%--
<asp:Label ID="Label2" runat="server" Style="left: 431px; position: relative; top: 27px"
Text="Label"></asp:Label>
<asp:Button ID="Button2" runat="server" BackColor="LimeGreen" ForeColor="White"
OnClick="Button2_Click" Style="left: -53px; position: relative; top: 20px" Text="Estemator" />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Style="position: relative; left: 99px; top: 3px;"
Text="Scheduler" BackColor="LimeGreen" ForeColor="White" /><br />
<asp:CheckBoxList ID="CheckBoxList2" runat="server" RepeatDirection="Horizontal"
Style="left: 228px; position: relative; top: 49px">
</asp:CheckBoxList>
<br />
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="12px" Style="position: relative; left: 1px; top: 0px;"
Width="540px">
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
Style="left: -6px; position: relative; top: 6px">
</asp:DropDownList>
<asp:Label ID="Label1" runat="server" Font-Bold="True" Style="left: -256px; position: relative;
top: 10px" Text="Estimator Appointment Of:" Width="112px"></asp:Label></telerik:RadAjaxPanel>
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" ></telerik:RadScriptManager>
<br />
<br />
--
%>
<div style="height:133px;width:1px;border:1px solid black; left: 7px; position: relative; top: 0px; z-index: 100;">
<p style="position: static" dir="ltr">
<asp:Label ID=lblBranchNotes runat=server Width="121px" style="position: relative; left: 2px; top: 0px;" Height="10px"></asp:Label>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"
Style="left: 495px; position: relative; top: 132px" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged" Font-Size="Larger" RepeatLayout="Flow" Width="487px">
</asp:RadioButtonList></p>
</div>
<div style="height:136px;width:531px;border:1px solid black; left: 519px; position: absolute; top: 32px; z-index: 101;">
<p style="position: static">
<asp:Label ID=lblEstimatorNotes runat=server Width="600px" style="position: absolute; left: 2px; top: 0px;" Height="4px"></asp:Label></p>
</div>
<asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="#004000" Style="left: 118px;
position: relative; top: -164px; z-index: 102;"
Text="Branch Notes"></asp:Label>
<asp:Label ID="Label3" runat="server" Font-Bold="True" ForeColor="#004000" Style="left: 477px;
position: relative; top: -166px; z-index: 103;"
Text="Estimator Notes"></asp:Label>
<telerik:RadScriptManager runat="server" ID="RadScriptManager2" ></telerik:RadScriptManager>
<asp:Label ID="Label1" runat="server" Font-Bold="True" Style="left: 60px; position: relative;
top: 14px; z-index: 104;"
Text="Estimator Appointment of:" ForeColor="#004000"></asp:Label>
<asp:Button ID="btnLiveTransfer" runat="server" BackColor="#004000" ForeColor="White" OnClick="Button2_Click1"
Style="left: 61px; position: relative; top: -206px; z-index: 105;" Text="Live Transfer" />
<asp:CheckBoxList ID="CheckBoxList2" runat="server" RepeatDirection="Horizontal"
Style="left: 17px; position: relative; top: 70px; z-index: 106;" ForeColor="#0000C0" AutoPostBack="True" OnSelectedIndexChanged="CheckBoxList2_SelectedIndexChanged" ToolTip="Estimators" CausesValidation="True" AppendDataBoundItems="True" BorderColor="Lime" Font-Bold="True">
</asp:CheckBoxList>
<asp:Button ID="Button1" runat="server" BackColor="#004000" ForeColor="White" Style="left: 943px;
position: relative; top: -187px; z-index: 107;"
Text="Close" OnClick="Button1_Click1" Width="55px" />
<telerik:RadScheduler runat="server" ID="RadScheduler1" Width="1016px" SelectedView="MonthView"
TimeZoneOffset="00:00:00" SelectedDate="2009-05-14" DayStartTime="08:00:00" DayEndTime="18:00:00" DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" style="left: 8px; top: 1px; z-index: 108;" Height="485px" Skin="Sunset" DisplayDeleteConfirmation="True" GroupingDirection="Vertical" OnClientTimeSlotClick="OnClientTimeSlotClick" onClientTimeSlotContextMenu="onClientTimeSlotContextMenu" StartInsertingInAdvancedForm="True" EnableCustomAttributeEditing="True" EnableResourceEditing="False" ShowFullTime="True" BorderStyle="None" Font-Bold="True">
<localization advanceddescription="Estimator Notes"></localization>
<timelineview userselectable="False" showinsertarea="False" showresourceheaders="False"></timelineview>
</telerik:RadScheduler>
</form>
</body>
</
html>
aspx.cs
----------------------------------
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
//RadScheduler1.ShowInlineInsertForm(ParseJavaScriptTime(e.Argument).AddHours(8));
RadScheduler1.SelectedView =
SchedulerViewType.DayView;
RadScheduler1.SelectedDate = ParseJavaScriptTime(e.Argument);
}
private DateTime ParseJavaScriptTime(string jsTime)
{
DateTime result = DateTime.ParseExact(jsTime, "yyyyMMddHHmm", null, DateTimeStyles.AssumeUniversal);
return result.ToUniversalTime();
}
can any one solve the problem ajax request is not working in the scheduler
as well as ajax functionality is also not working
advance regards
immu