How to set an alarm/reminder on an Appointment

16 posts, 0 answers
  1. OL
    OL avatar
    20 posts
    Member since:
    Jan 2010

    Posted 23 Sep 2010 Link to this post

    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.
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 28 Sep 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. OL
    OL avatar
    20 posts
    Member since:
    Jan 2010

    Posted 30 Sep 2010 Link to this post

    Thanks for answering but I haven't the Reminders collection on my Telerik.Web.UI.Appointment instance (I'm not using the RadControl).
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 04 Oct 2010 Link to this post

    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
  6. OL
    OL avatar
    20 posts
    Member since:
    Jan 2010

    Posted 05 Oct 2010 Link to this post

    OK, thank you for the reply.
    But too bad, I do not have that version.
  7. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 08 Oct 2010 Link to this post

    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
  8. dlewis
    dlewis avatar
    13 posts
    Member since:
    Aug 2009

    Posted 06 May 2011 Link to this post

    The "Reminder Overview" link is dead.    http://www.telerik.com/help/aspnet-ajax/reminders-overview.html
  9. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 09 May 2011 Link to this post

    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.

  10. Philip
    Philip avatar
    69 posts
    Member since:
    Mar 2016

    Posted 31 Mar in reply to Veronica Link to this post

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

     

     

  11. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 05 Apr Link to this post

    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.
  12. Philip
    Philip avatar
    69 posts
    Member since:
    Mar 2016

    Posted 05 Apr in reply to Plamen Link to this post

    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 !
  13. Philip
    Philip avatar
    69 posts
    Member since:
    Mar 2016

    Posted 05 Apr in reply to Plamen Link to this post

    My Orignal question was  how do i generate the VLARM code as a string in complaince with the reminder dialog times !
  14. Philip
    Philip avatar
    69 posts
    Member since:
    Mar 2016

    Posted 05 Apr in reply to Plamen Link to this post

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

  15. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 08 Apr Link to this post

    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.
  16. Philip
    Philip avatar
    69 posts
    Member since:
    Mar 2016

    Posted 08 Apr in reply to Bozhidar Link to this post

    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.

     

  17. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 11 Apr Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017