I am evaluating the Telerik RadScheduler .
All most all our requirements are available in this except TimeSlot Horizental.
I am facing some problems.
1.
Depending up on appointmetn start time and end time i have to change the colors.
Ex: Appointments End Time lessthan the current time i have to show those appoinments in blue color
Appoinments Start Time greater than the current time i have to show those appoinments in green color.
While page loading and
RadScheduler1_AppointmentDelete
appointments are showing in the defined colors usingRadScheduler1_AppointmentDataBound
but when i am changing the start time and end time using drag and drop with in the scheduler
RadScheduler1_AppointmentUpdate is calling and the color is not changing depending upon the above example logic.
and when ever this event is calling RadScheduler1_AppointmentDataBound is not calling
protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
{
int
id = (int)e.ModifiedAppointment.ID;
string duration = e.ModifiedAppointment.Duration.ToString();
string starttime = e.ModifiedAppointment.Start.TimeOfDay.ToString();
string endtime = e.ModifiedAppointment.End.TimeOfDay.ToString();
string date = e.ModifiedAppointment.Start.ToShortDateString();
int resourceId = (int)e.ModifiedAppointment.Resources.GetResourceByType("Chair").Key;
ScheduleUpdate(id, starttime, endtime, duration, date, resourceId);
//Change the appointment colors which are already closed i.e appointmetn end time less than the current time.
if (Convert.ToDateTime(e.ModifiedAppointment.End) < Convert.ToDateTime(DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString()))
{
e.Appointment.BackColor = System.Drawing.
Color.Gray;
e.Appointment.ForeColor = System.Drawing.
Color.White;
}
//Change the appointment colors which are not started i.e appointmetn start time greater than the current time.
else if (Convert.ToDateTime(e.ModifiedAppointment.Start) > Convert.ToDateTime(DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString()))
{
e.Appointment.BackColor = System.Drawing.
Color.Yellow;
e.Appointment.ForeColor = System.Drawing.
Color.Blue;
}
else
{
e.Appointment.BackColor = System.Drawing.
Color.Green;
e.Appointment.ForeColor = System.Drawing.
Color.White;
}
RadScheduler1.Rebind();
RadGrid1.Columns[3].Visible = true;
RadToolTipManager2.TargetControls.Clear();
RadGrid1.Rebind();
RadGrid1.Columns[3].Visible =
false;
RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadScheduler1, RadScheduler1);
RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadScheduler1, RadToolTipManager1);
}
2.
How to restrict the users to resize the appoinments with out customizing. Is there any inbuilt property in scheduler control.
3.
ShowHoursColumn="False"
I set the property of the scheduler but its showing the vertical line . I want to remove that line. Is there any way to remove that line from GUI.
4.
In Hours Column time (08:00) is showing top of the TimeLabelSpan but i want to set to middle of the TimeLabelSpan.
5.
I added some contextMenuItems to the appointments and when ever i click on contextMenuItem its opening a new browser.
But i want to open the contextMenuItem windows as popups.
Is there any inbuilt feature to achieve this.
6.How to change the color of 2 timeslots (30 mints) after the each Appointment End Time to RED color.
7. In
RadScheduler1_AppointmentUpdate
Event i am getting the below error and data is updating correctly.
Sys.WebForms.PageRequestMangerServerErrorException: Procedure or function UpdateDetails has too many arguments specified.
How rosolve the above error.
Code:
IDataSource
dataSource = SchedulerDataSource;
DataSourceView view = dataSource.GetView("DefaultView");
IDictionary keys = new OrderedDictionary();
IOrderedDictionary data = new OrderedDictionary();
data.Add(
"UPStartTime", starttime);
data.Add(
"UPEndTime", endtime);
data.Add(
"UPDuration", duration);
data.Add(
"UPUpdatedBy", "242675");
data.Add(
"UPDate", date);
data.Add(
"UPChairId", resourceId);
data.Add(
"UPAppointmentID", id);
int j = data.Count;
view.Update(keys, data ,
new OrderedDictionary(), OnDataSourceOperationComplete);
I tried to resolve using the onupdating="SchedulerDataSource_Updating" event to remove the extra Parameters added by VS.
8.
TimeSlotContextMenus are showing when user click on resources. How to restirct it.
9.
In RadGrid there are 5 columns and i want to give sorting feature to only 2 columns in that grid but in the front end users are able to
sort using all the columns. How to restrict some columns for sorting by clicking on the grid columns.
<SortExpressions>
<telerik:GridSortExpression FieldName="TeammateName" SortOrder="Ascending" />
<telerik:GridSortExpression FieldName="Role" SortOrder="Ascending" />
</SortExpressions>
10.Please go through the attached screen and the questions about the attached screen shot are
1. How to remove the blue color in b/t the two schedulers.
2. Whenever I click on New Appointment its showing like below.
3. Whenever we are moving the appointments we are getting the below java script error.
Please Give any suggestions ASAP.
Please suggest any reference links for all the above points.
Thanks in advance.