I'm trying to fix this error for days now.
I have got a radscheduler control in my web form and of course RadAjaxManager with radAjaxLoadingPanel.
Since i have replaced my Q1 radcontrols with Q2, my nightmare began.
With Q1 controls, when I clicked twice on an appointment, the advanced edit form was shown immediately after Ajax was loaded. With Q2 controls, when I click on an appointment twice, the advanced edit form should appear. It appears, but there is no form...only the buttons to save and to cancel editing are shown. ???
If I disable RadAjaxManager, everything works normal.
Does someone have a clue what is going on?
I am about to conclude my project, and I really don't know what to do with this any more.
Please help.
LP, Luka
12 Answers, 1 is accepted

Please, excuse us for the late reply. There is a known problem with RadScriptManager in the current official Q2 release. I suspect that this particular issue is the source of your problems. Please, try setting EnableScriptCombine of the RadScriptManager to false:
<telerik:RadScriptManager EnableScriptCombine="false" ... /> |
We have since resolved the issue. Please, open a formal support ticket, so we can send you a hotfix. I am sorry for the inconvenience.
Sincerely yours,
Tsvetomir Tsonev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.

That really was the source of my problems with RadAjaxManager.
I will open a support ticket shortly.
Thank you again,
LP, Luka

I am facing a problem with radscheduler. I have a master page and a scheduler page displaying the appointments. Master page contains scriptmanager and my scheduler page was containing the radscriptmanager. As only one scriptmanager is allowed I removed the radscriptmanager from the scheduler page. I added the scripts dynamically on page load event still the events are not working. Events like week, day view navigation are also not working. I am giving my code here. -
MasterPage
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="AdminMaster.master.cs" Inherits="AspDotNetStorefrontAdmin.NewAdmin_App_Templates_AdminMaster" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"><title></title>
<asp:ContentPlaceHolder ID="head" runat="server"></asp:ContentPlaceHolder></head>
<body>
<form id="form1" runat="server" defaultbutton="imgSearch">
<asp:ScriptManager ID="scrptMgr" runat="server" />
<table width="100%" cellpadding="0" cellspacing="0" id="wrapperTable">
<!-- HEADER --><tr id="topHeaderRow"><td align="left" valign="top" class="Top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td id="Top_Left" valign="bottom">
<table style="width: 550px" border="0">
<tr><td style="width: 210px"><br />
</td>
<td class="adminUserIcon">
<a href="(!ADMIN_ICON_LINK!)" target="content" title="Edit Account">
<img runat="server" id="imgUserIcon" src="~/App_Themes/Admin_Default/images/usericon.gif"
border="0" /></a>
</td>
<td class="adminUserName">
<asp:Literal runat="server" Text="<%$ Tokens:user_menu_name %>" /></td></tr>
</table>
</td>
<td class="Top_Center"> </td>
<td class="Top_Right" align="right">
<table cellpadding="0" cellspacing="0">
<tr><td valign="bottom">
<table width="0" border="0" cellspacing="0" cellpadding="0" id="toplink">
<tr><td align="center" valign="middle">
<a runat="server" href="~/" target="_blank" title="Store Site">
<img runat="server" id="imgShoppingCart" src="~/App_Themes/Admin_Default/images/shoppingcart.png"
nmouseover="javascript:this.src='../App_Themes/Admin_Default/images/shoppingcart_hover.png'"
nmouseout="javascript:this.src='../App_Themes/Admin_Default/images/shoppingcart.png'"
border="0" /></a>
</td>
<td align="center" valign="middle">
<a href="default.aspx?clearcache=true" target="_top" title="Reset Cache">
<img runat="server" id="imgResetCache" src="~/App_Themes/Admin_Default/images/reset.png"
nmouseover="javascript:this.src='../App_Themes/Admin_Default/images/reset_hover.png'"
nmouseout="javascript:this.src='../App_Themes/Admin_Default/images/reset.png'"
border="0" /></a>
</td>
<td align="center" valign="middle">
<a href="signout.aspx" target="_top" title="Logout">
<img runat="server" id="imgLogout" src="~/App_Themes/Admin_Default/images/logout.png"
over="../App_Themes/Admin_Default/images/logout_hover.png" border="0" /></a>
</td>
</tr>
<tr>
<td align="center" valign="middle">
<a runat="server" href="~/" target="_blank"><asp:literal runat="server" Text="Aviate Online" /></a></td>
<td align="center" valign="middle">
<a href="default.aspx?clearcache=true" target="_top"><asp:Literal runat="server" Text="<%$ Tokens:stringresource,
dmin.common.ResetCache %>" /></a>
</td>
<td align="center" valign="middle">
<a href="signout.aspx" target="_top"><asp:Literal runat=server Text="<%$ Tokens:signinout_text %"/></asp:Literal></a>
</td></tr>
</table>
</td>
</tr>
<tr>
<td valign="bottom" align="right" style="padding-top: 2px;">
<table width="0" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="35" align="right" valign="top">
<img id="Img1" runat="server" src="~/App_Themes/Admin_Default/images/searchbutton2.png"
width="35" height="22" />
</td>
<td valign="top">
<asp:TextBox runat="server" id="txtSearch" class="Search_textbox" size="22" name="SearchTerm"
value="Search here" onclick="javascript:this.value=''" />
</td>
<td width="42" align="left" valign="top">
<asp:ImageButton runat="server" id="imgSearch" ImageUrl="~/App_Themes/Admin_Default/images/searchbutton.png"
OnClick="search_OnClick" hover="~/App_Themes/Admin_Default/images/searchbutton_hover.png"border="0" />
</td></tr></table>
</td></tr></table>
</td>
<td width="10px" class="Top_Right_Margin"> </td></tr></table>
</td></tr><!-- END HEADER -->
<!-- MENU --><tr id="topMenuRow"><td id="menu"><asp:Panel ID="pnlMenu" runat="server" /></td></tr><!-- END MENU -->
<!-- BREADCRUMBS --><tr runat="server" id="trBreadCrumbRow" visible="false"><td>
<table width="100%" class="breadCrumb1">
<tbody>
<tr>
<td align="left">
<asp:Literal runat="server" ID="ltBreadCrumb" /></td>
<td align="right">
<asp:HyperLink runat="server" NavigateUrl="<%$ Tokens:AdminLink, default.aspx %>" Text="<%$ Tokens:StringResource, admin.common.home %>" /></td></tr></tbody>
</table></td></tr>
<!-- END BREADCRUMBS -->
<!-- BODY -->
<tr><td id="mainContentBody"><asp:ContentPlaceHolder ID="bodyContentPlaceholder" runat="server" /></td></tr></table>
<!-- END BODY -->
<!-- FOOTER --><div class="footer" align="center">© 2010 Aviate Online. All Rights Reserved.</div><!-- END FOOTER--> </form>
</body>
</html>
Scheduler page code and the code are attached with this post.
Please review it and reply as soon as possible.
Could you please remove the asp:UpdatePanel around RadScheduler and let us know how it goes.
Regards,
Helen
the Telerik team

Thaks for reply.
Problem has been solved. No need to remove it. Simply there is no need to add those script that I have added dynamically. After removing that code it is working fine.

I want to change the time range timepicker of the advance form. It is showing time from 8 to 6pm. Can you please suggest something to achive this.
Thanks in adance.
Regards,
Roshani
Please use the following resources:
1. http://www.telerik.com/help/aspnet-ajax/scheduler-change-end-date-when-start-date-changes.html
How to access the StartTime/EndTime pickers in the advanced form.
2. http://demos.telerik.com/aspnet-ajax/calendar/examples/datetimepicker/overview/defaultcs.aspx
How to set a specific start time and end time in the pickers.
Regards,
Helen
the Telerik team

Thanks for the suggestion.
I gone through the demos, but my requirement is little bit different.
I set the radscheduler's Work time range i.e. DayStartTime to 06:00:00 and DayEndTime to 23:30:00. Now while inserting/editing an appointment the timepicker in the Advance form displays the time in the range 8 to 5:30 only. I want to set this to the above time range so that the user can select from it.
I tried this by setting the some properties but still the advanceform shows the same time range.
Following is the radscheduler description I am using. Am I missing something?
<
telerik:RadScheduler
ID
=
"RadScheduler1"
runat
=
"server"
DataDescriptionField
=
"Description"
DataEndField
=
"End"
DataKeyField
=
"AppointmentId"
DataRecurrenceField
=
"RecurrenceRule"
DataRecurrenceParentKeyField
=
"RecurenceParentId"
DataSourceID
=
"SDSAppointments"
DataStartField
=
"Start"
DataSubjectField
=
"Subject"
EnableDescriptionField
=
"True"
DayEndTime
=
"23:30:00"
DayStartTime
=
"06:00:00"
TimelineView-UserSelectable
=
"false"
CustomAttributeNames
=
"FlightHours,GroundHours,Comments"
EnableCustomAttributeEditing
=
"True"
AllowDelete
=
"false"
onappointmentinsert
=
"RadScheduler1_AppointmentInsert"
onappointmentcommand
=
"RadScheduler1_AppointmentCommand"
StartInsertingInAdvancedForm
=
"True"
WorkDayEndTime
=
"23:30:00"
WorkDayStartTime
=
"06:00:00"
>
<
AdvancedForm
Modal
=
"true"
EnableCustomAttributeEditing
=
"True"
/>
<
ResourceTypes
>
<
telerik:ResourceType
DataSourceID
=
"SDSStudents"
ForeignKeyField
=
"CustomerId"
KeyField
=
"CustomerID"
Name
=
"Students"
TextField
=
"StudentName"
/>
<
telerik:ResourceType
DataSourceID
=
"SDSLessons"
ForeignKeyField
=
"LessonTypeId"
KeyField
=
"CategoryID"
Name
=
"Lessons"
TextField
=
"Name"
/>
</
ResourceTypes
>
<
Localization
AdvancedFrom
=
"06:00:00"
AdvancedTo
=
"23:30:00"
/>
<
TimelineView
UserSelectable
=
"False"
/>
<
WeekView
DayEndTime
=
"23:30:00"
DayStartTime
=
"06:00:00"
WorkDayEndTime
=
"23:30:00"
WorkDayStartTime
=
"06:00:00"
/>
<
DayView
DayEndTime
=
"23:30:00"
DayStartTime
=
"06:00:00"
WorkDayEndTime
=
"23:30:00"
WorkDayStartTime
=
"06:00:00"
/>
<
MultiDayView
DayEndTime
=
"23:30:00"
DayStartTime
=
"06:00:00"
WorkDayEndTime
=
"23:30:00"
WorkDayStartTime
=
"06:00:00"
/>
<
AppointmentTemplate
>
<
div
>
<
table
width
=
"100%"
><
tr
><
td
width
=
"95%"
> <%#Eval("Subject") %></
td
>
<
td
align
=
"right"
><
asp:ImageButton
ID
=
"btnDelivered"
runat
=
"server"
ImageUrl
=
"~/images/Delivered.png"
ToolTip
=
"Lesson Delivered"
Width
=
"20"
Height
=
"20"
CommandName
=
"Delivered"
CommandArgument='<%#Eval("Id") %>' /></
td
></
tr
>
</
table
>
</
div
><
div
><
b
><%#Eval("Description") %></
b
></
div
>
</
AppointmentTemplate
>
</
telerik:RadScheduler
>
Please reply asap.
Regards,
Roshani

I am facing one more problem. I have creted AppointmentInfo Class as explained here . But it is not accessible in the scheduler pages. I need Radscheduler twice in the project one at Admin section and one at Instructor section. I am unable to access its properties. Following is my AppointmentInfo class which is in AppCode Folder of the project:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telerik.Web.UI;
/// <
summary
>
/// Summary description for AppointmentInfo
/// </
summary
>
public class AppointmentInfo
{
#region "Private Variables"
private readonly string _Id;
private string _Subject;
private DateTime _Start;
private DateTime _End;
private string _RecurrenceRule;
private string _RecurrenceParentId;
private Int32 _InstructorId;
private Int32 _CustomerId;
private Int32 _LessonTypeId;
private string _Description;
private int _IsInactive;
private int _IsDelivered;
private int _IsEdited;
private int _IsDeleted;
private decimal _FlightHours;
private decimal _GroundHours;
private string _Comments;
#endregion
#region "Properties"
public string Id
{
get { return _Id; }
}
public string Subject
{
get { return _Subject; }
set { _Subject = value; }
}
public DateTime Start
{
get { return _Start; }
set { _Start = value; }
}
public DateTime End
{
get { return _End; }
set { _End = value; }
}
public string ReccurenceRule
{
get { return _RecurrenceRule; }
set { _RecurrenceRule = value; }
}
public string ReccurenceParentId
{
get { return _RecurrenceParentId; }
set { _RecurrenceParentId = value; }
}
public Int32 InstructorId
{
get { return _InstructorId; }
set { _InstructorId = value; }
}
public Int32 CustomerId
{
get { return _CustomerId; }
set { _CustomerId = value; }
}
public Int32 LessonTypeId
{
get { return _LessonTypeId; }
set { _LessonTypeId = value; }
}
public string Description
{
get { return _Description; }
set { _Description = value; }
}
public int IsInactive
{
get { return _IsInactive; }
set { _IsInactive = value; }
}
public int IsDelivered
{
get { return _IsDelivered; }
set { _IsDelivered = value; }
}
public int IsEdited
{
get { return _IsEdited; }
set { _IsEdited = value; }
}
public int IsDeleted
{
get { return _IsDeleted; }
set { _IsDeleted = value; }
}
public decimal FlightHours
{
get { return _FlightHours; }
set { _FlightHours = value; }
}
public decimal GroundHours
{
get { return _GroundHours; }
set { _GroundHours = value; }
}
public string Comments
{
get { return _Comments; }
set { _Comments = value; }
}
#endregion
private AppointmentInfo()
{
_Id = Guid.NewGuid().ToString();
}
public AppointmentInfo(string subject, DateTime start, DateTime end,
string reccurrenceRule, string reccurrenceParentID, Int32 instructorId, Int32 customerId, Int32 lessonTypeId,
string description, int isInactive, int isDelivered, int isDeleted, int isEdited, decimal flightHours,
decimal groundHours, string comments)
: this()
{
_Subject = subject;
_Start = start;
_End = end;
_RecurrenceRule = reccurrenceRule;
_RecurrenceParentId = reccurrenceParentID;
_InstructorId = instructorId;
_CustomerId = customerId;
_LessonTypeId = lessonTypeId;
_Description = description;
_IsInactive = isInactive;
_IsDelivered = isDelivered;
_IsDeleted = isDeleted;
_IsEdited = isEdited;
_FlightHours = flightHours;
_GroundHours = groundHours;
_Comments = comments;
}
public AppointmentInfo(Appointment source)
: this()
{
CopyInfo(source);
}
public void CopyInfo(Appointment source)
{
Subject = source.Subject;
Start = source.Start;
End = source.End;
ReccurenceRule = source.RecurrenceRule;
if (source.RecurrenceParentID != null)
{
ReccurenceParentId = source.RecurrenceParentID.ToString();
}
}
}
I follow the exact procedure mentioned in the above link. I am using SqlDatasource control to bind data to the schduler. So, I havent created AppointmentsList class. I trying to do the following which was working in my demo project.
protected void RadScheduler1_DataBound(object sender, SchedulerEventArgs e)
{
try
{
if (e.Appointment.Attributes["IsInactive"].ToString() == "1")
{
//logic to change css.
}
}
catch (Exception ex)
{
string ErrorMessage = ex.Message;
SysLog.LogException(ex, MessageTypeEnum.DatabaseException, MessageSeverityEnum.Error);
}
finally
{
}
}
Which is giving error-Object reference not set to an instance of an object
How this class will be available in the my schduler pages? I have used radscheduler on the 4 pages and all have the same properties.
Please reply as soon as possible so that i can implement this further.
Regards,
roshani

Up to the first problem - please use the following code to set a specific time to the TimePicker:
protected
void
RadScheduler1_FormCreated(
object
sender, SchedulerFormCreatedEventArgs e)
{
if
((e.Container.Mode == SchedulerFormMode.AdvancedInsert) || (e.Container.Mode == SchedulerFormMode.AdvancedEdit))
{
RadTimePicker startTime = e.Container.FindControl(
"StartTime"
)
as
RadTimePicker;
startTime.TimeView.StartTime =
new
TimeSpan(6, 0, 0);
startTime.TimeView.EndTime =
new
TimeSpan(24, 0, 0);
startTime.TimeView.DataList.DataSource =
null
;
startTime.DataBind();
}
}
For the second - when you databind RadScheduler to the SqlDataSource there is no need to use the classes described in the article.
You may use the following help articles for the reference:
http://www.telerik.com/help/aspnet-ajax/schedule_databinding.html
http://www.telerik.com/help/aspnet-ajax/database-structure.html
http://www.telerik.com/help/aspnet-ajax/schedule_databindingdeclarativedatabinding.html
Regards,
Helen
the Telerik team