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

RadScheduler, unique to each user

1 Answer 84 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 13 Oct 2014, 02:18 AM
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     

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 15 Oct 2014, 12:31 PM
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.

 
Tags
Scheduler
Asked by
David
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or