RadScheduler, unique to each user

2 posts, 0 answers
  1. David
    David avatar
    1 posts
    Member since:
    Feb 2013

    Posted 12 Oct 2014 Link to this post

    Hello everyone. 
    I've been doing .net for years, finally jumping into Telerik for the first time. I'm am wanting to try out the RadScheduler control, but not sure if it will work for me, or more so, I don't know how to make it work for me. 

    Heres what I need to do:
    I need a popup calendar reminder. I don't need the fancy calendar so much, but if a user saves a reminder for a day, I need something to pop up whenever they login to the site and there is a reminder for that day. I would like for this popup to occur no matter what page of the site they are on. 

    I also need this to be unique for each site user. Not one calendar of events, but a unique calendar for each site user. 

    Can someone please point me in the right direction. Any code examples to get me started would be VERY appreciated!

    Thanks in advance!

    DB     
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 15 Oct 2014 Link to this post

    Hello DB,

    The RadScheduler control does support reminder functionality. Please review this demo that shows how the reminders work. Please note that the RadScheduler is required on the current page in order to show reminder pop-up. In other words if you have two pages in your web site ( one contains a RadScheduler and the other does not have a RadScheduler control) and you are viewing the one that does not have RadScheduler a reminder pop-up will not show. For such functionality you can have a hidden RadScheduler control on that page.

    In order to implement a unique RadScheduler for each user you can use the AppointmentDataBound event handler. The appointments allow custom attributes thus you can set a user attribute for each appointment. If the currently logged user name does not match the appointment user attribute value you can hide the appointment. This way the appointment will be filtered based on the logged user.
    protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
        {
            if (User.Identity.Name == e.Appointment.Attributes["User"])
            {
                e.Appointment.Visible = false;
            }
        }


    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top