I'm using an instance of the Telerik.Web.UI.Appointment class and the RadScheduler.ExportToICalendar method to export as iCalendar.
I managed to set basics properties of my appointement:
Appointment objAppointment = new Appointment()
{
Subject = "TEST",
Start = datStart,
End = datStart.AddHours(2)
};
and to get the ics file which is readable by Outlook.
But I'd like to set some advanced properties like a reminder.
I've open an other ics which has a 2 days reminder and I can see the following code:
BEGIN:VALARM
TRIGGER:-PT2880M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
How can I produce something like that with the Appointment's members?
Thanks.
15 Answers, 1 is accepted
Please, see the Reminder Overview topic. From code-behind you can add a reminder to the appointment object like this:
myAppointment.Reminders.Add(new Reminder(15));
Kind regards,
Peter
the Telerik team

Please, make sure you are using the latest version - 2010.2.929.
Regards,
Peter
the Telerik team

But too bad, I do not have that version.
If you are using RadControls for ASP.NET AJAX inside Sitefinity you will have to wait for them to release a new version/service pack with updated RadControls in it. If not - you can download Radcontrols Q2 2010 SP2 from your account.
Sincerely yours,
Kamen Bundev
the Telerik team

We are aware of this issue.
We have made some changes to the database that holds the url-s for the online help. Until we fix this - please try to navigate to the desired link through the Tree on the left side of the help articles. Go to: RadControls -> RadScheduler -> Reminders -> Overview and you will be able to see the content of the help file.
Greetings,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

I am using entity frame work to pull my appointments in but I need to be able to set reminders on the appointments i have added the filed DataReminderField but obv i need to be able to set the remidner at the apointment creation side I am doing this through a custom booking form and its been requested I mimic the outlook reminder dialog which your component offers. So my main question is how do i write the valarm code through entity framework ?.
I have tested the issue at my side and it worked correctly with the latest version of the controls. I am attaching my test page. Please review it and let make now what else should be done to replicate the issue.
Regards,
Plamen
Telerik



01.
ApertureDal.Appointment _appointment =
new
ApertureDal.Appointment();
02.
tblApertureNetNotification _notification =
new
tblApertureNetNotification();
03.
tblApertureNetcustomDateTimePickerDatesProvder _dateToPickFrom =
new
tblApertureNetcustomDateTimePickerDatesProvder();
04.
Attachment attachment;
05.
string
bodyMessage = _notification.body;
06.
int
id = Convert.ToInt32(Request.QueryString[
"id"
]);
07.
08.
_appointment = _dal.GetAppointMentByiD(id,
""
);
09.
_customRef = _dal.GetPrefix(
"Calendar"
).ToString();
10.
11.
if
(txtRef.Text !=
""
)
12.
_appointment.TimeCode = _customRef;
13.
14.
FormsIdentity _identity = (FormsIdentity)Context.User.Identity;
15.
_identity = (FormsIdentity)Context.User.Identity;
16.
17.
User _myuser = _dal.getUser(_identity.Name.ToString());
18.
string
advisorName = _myuser.FirstName +
" "
+ _myuser.LastName;
19.
20.
DateTime startDate = (!rdStarDate.SelectedDate.HasValue || rdStarDate.SelectedDate.Value ==
new
DateTime(1900, 1, 1)) ? DateTime.Today : rdStarDate.SelectedDate.Value;
21.
DateTime endDate = (!rdEndDate.SelectedDate.HasValue || rdEndDate.SelectedDate.Value ==
new
DateTime(1900, 1, 1)) ? DateTime.Today : rdEndDate.SelectedDate.Value;
22.
_appointment.TimeCode = _customRef;
23.
24.
_appointment.CustomerFirstName = txtFirstname.Text;
25.
_appointment.CustomerLastName = txtLastName.Text;
26.
_appointment.emailAddress = txtEmail.Text;
27.
_appointment.Address1 = txtCustomerAddress1.Text;
28.
_appointment.Address2 = txtCustomerAddress2.Text;
29.
_appointment.PostCode = txtpostCode.Text;
30.
_appointment.Start = startDate;
31.
_appointment.End = endDate;
32.
_appointment.Subject =
"Occupied"
;
33.
_appointment.isDeleted =
false
;
34.
_appointment.notes = txtNotes.Text;
35.
_appointment.BookedDate = rdStarDate.SelectedDate;
36.
_appointment.preferedContactNumber = txtContactNum.Text;
37.
_appointment.mobileNumber = txtMobileNumber.Text;
38.
_appointment.authUserName = Environment.UserName;
39.
_appointment.authCreatedDate = DateTime.Now;
40.
_appointment.Duration = 60;
41.
ReminderData _rem =
new
ReminderData();
42.
_rem.TriggerMinutes = 30;
43.
44.
_appointment.Reminder = _rem.ToString();
45.
46.
DateTime _startDate =
new
DateTime();
47.
_startDate = rdStarDate.SelectedDate.Value;
48.
_appointment.Time = _startDate.TimeOfDay;
49.
_appointment.managerId =
new
Guid(rdManagers.SelectedItem.Value);
50.
_appointment.managerName = rdManagers.SelectedText;
So you see their i am trying to save the data using
ReminderData _rem = new ReminderData();
and _rem.ToString()
but what is saving in the db is just this
Telerik.Web.UI.ReminderData
While what i need to produce is the above vlarm code from what the user selects in the drop down?.
The ReminderData class is used for WebService binding purposes. If you need to programmatically create a reminder you need to use the Reminder class.
var reminder =
new
Reminder(15);
var remString = reminder.ToString();
Regards,
Bozhidar
Telerik

Boz that worked great so it did one more question is their a way to remove the open item button from the dialog as I am not using the built in form for this and also how do i update the reminder to reflect the snooze feature.
The same issue is already discussed here. In such case we recommend keeping the questions in one thread so we avoid duplicated posts and answers.
Regards,
Plamen
Telerik