This is a migrated thread and some comments may be shown as answers.

How to set an alarm/reminder on an Appointment

15 Answers 250 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
OL
Top achievements
Rank 1
OL asked on 23 Sep 2010, 08:55 AM
Hello,

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

Sort by
0
Peter
Telerik team
answered on 28 Sep 2010, 01:30 PM
Hi OL,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
OL
Top achievements
Rank 1
answered on 30 Sep 2010, 09:14 AM
Thanks for answering but I haven't the Reminders collection on my Telerik.Web.UI.Appointment instance (I'm not using the RadControl).
0
Peter
Telerik team
answered on 04 Oct 2010, 04:35 PM
Hello OL,

Please, make sure you are using the latest version - 2010.2.929.

Regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
OL
Top achievements
Rank 1
answered on 05 Oct 2010, 01:07 PM
OK, thank you for the reply.
But too bad, I do not have that version.
0
Kamen Bundev
Telerik team
answered on 08 Oct 2010, 04:15 PM
Hi,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
dlewis
Top achievements
Rank 1
answered on 06 May 2011, 04:19 PM
The "Reminder Overview" link is dead.    http://www.telerik.com/help/aspnet-ajax/reminders-overview.html
0
Veronica
Telerik team
answered on 09 May 2011, 01:36 PM
Hello dlewis,

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.

0
Philip
Top achievements
Rank 1
answered on 31 Mar 2016, 02:42 PM

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 ?.

 

 

0
Plamen
Telerik team
answered on 05 Apr 2016, 07:36 AM
Hi,

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
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Philip
Top achievements
Rank 1
answered on 05 Apr 2016, 07:43 AM
Sorry but the code you supplied has no relavent code in code behind and no sign of you setting the reminder in the aspx file either I need to be able to set the VALRM string via code behind as in my orignal quesiton !
0
Philip
Top achievements
Rank 1
answered on 05 Apr 2016, 07:48 AM
My Orignal question was  how do i generate the VLARM code as a string in complaince with the reminder dialog times !
0
Philip
Top achievements
Rank 1
answered on 05 Apr 2016, 07:57 AM
I probally should elborate in my code im using ef5 to save out to the entities.
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?.

0
Bozhidar
Telerik team
answered on 08 Apr 2016, 06:37 AM
Hi,

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
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Philip
Top achievements
Rank 1
answered on 08 Apr 2016, 09:13 AM

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.

 

0
Plamen
Telerik team
answered on 11 Apr 2016, 07:24 AM
Hello,

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
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Scheduler
Asked by
OL
Top achievements
Rank 1
Answers by
Peter
Telerik team
OL
Top achievements
Rank 1
Kamen Bundev
Telerik team
dlewis
Top achievements
Rank 1
Veronica
Telerik team
Philip
Top achievements
Rank 1
Plamen
Telerik team
Bozhidar
Telerik team
Share this question
or