Scheduler Security & Registration

9 posts, 0 answers
  1. Carlo DiCelico
    Carlo DiCelico avatar
    15 posts
    Member since:
    Sep 2007

    Posted 16 Oct 2007 Link to this post

    I have two questions regarding the Scheduler.

    Does anyone have any idea what might be the best way to do role-based permissions with the scheduler? I need to make it so that only people in the admin role can add events. Probably the most obvious way would be to check the user's role every time a user tries to edit something but if there was a way that I could find their role and disable the editing function for them, that would be much better. I'm using Windows Authentication and there doesn't seem to be any kind of security like this built into the control itself.

    Another thing that seems to be missing is the ability to register for appointments or events that are on the calendar. I was trying to figure out a way to implement a context menu with a menu item saying "Register for this event" or something, but nothing I tried works. Any thoughts? Maybe put a link to a popup window in the title bar (I hate using popups but if it's the best possible solution...).

    Thanks.
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 17 Oct 2007 Link to this post

    Hello Carlo,

    Regarding the first question, you can set the ReadOnly property in the Page_Load event based on what privileges your current user has:
    protected void Page_Load(object sender, EventArgs e)  
        {  
            if (userCondition)  
            {  
                RadScheduler1.ReadOnly true;             
            }  
        } 

    With the next service pack we will expose the AllowDelete and AllowEdit properties for Appointments which will give you additional flexibility to customize RadScheduler.

    As for the second question, I am don't quite understand what you want to achieve. Please, give us more details on the scenario and we will try to find a solution. You can also consider the External Edit in RadWindow online example which might be relevant to this case.


    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Carlo DiCelico
    Carlo DiCelico avatar
    15 posts
    Member since:
    Sep 2007

    Posted 17 Oct 2007 Link to this post

    Thanks, that first suggestion seems like it would be the cleanest, easiest way to accomplish what I'm trying to do, security-wise. Does that ReadOnly property exist for every Telerik control?

    As far as the second item, let's say I set up a recurring appointment. I want users to be able to somehow click on the appointment and sign up to attend it. This is something that I would have to build myself right now, but I think this control would be a lot better if it had at least some basic "sign up for this event/appointment" type of functionality, at least some exposed methods & properties (IsRegistered, for example).

    Thank you for your help!
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 17 Oct 2007 Link to this post

    Hi Carlo,

    I agree with you - it makes sense to add such feature to RadScheduler. I will forward this thread to our developers who will consider your suggestion. Thank you very much for your involvement.


    Regards,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Carlo DiCelico
    Carlo DiCelico avatar
    15 posts
    Member since:
    Sep 2007

    Posted 17 Oct 2007 Link to this post

    Thanks!
  6. Fabio Honigmann
    Fabio Honigmann avatar
    24 posts
    Member since:
    May 2007

    Posted 27 May 2008 Link to this post

    I have the same need to allow registrations for "events" listed in the scheduler as well as control maximum number of registrations allowed.

    I don't expect the control to do all that for me, but i need some guidelines or best practices on how I could bind a "registration" to an occurrence of a given event.
    Considering that recurring events is just a single event with a string of rules that tells the scheduler how to render it or/and some cases related events to display exceptions.

    In my data store, how can i relate a registration to that single instance of a event?

    Should this be treated as a resource? Where i link link the registration Id to the event resource collection?
    if so:
    My registration form will be outside the scheduler, how do i turn a recurrence rule into an exception event, and bind the registration to its resource list.


    Thanks


    Fabio
  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 29 May 2008 Link to this post

    Hello Fabio,

    As you may know, when you choose to modify only a particular occurrence, an exception is created and the occurrence is stored as a new appointment in the data base. The recurrence string of the parent appointment is modified to reflect the newly created exception. With this in mind you can treat the occurence as a regular appointment.



    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. Fabio Honigmann
    Fabio Honigmann avatar
    24 posts
    Member since:
    May 2007

    Posted 30 May 2008 Link to this post

    Hey Peter,
    Yes i got that part figured out, thanks.

    But im having some issue with the RecurrenceState, i browsed all samples online, local and the documentation but i haven't found an answer.

    I am implementing my calendar using custom business objects, and data source control. For some strange reason when i add a single "appointment" in the scheduler it shows as a "exception to a recurrence" that little icon on the left side.

    I played around with the RecurrenceState but it doesnt seem to make any difference. Do i even have to implement that property in my object or the scheduler picks it up automatically?
    The samples and documentation are very unhelpful explaining why and how to implement that in a custom implementation. (I did check the examples, i saw the implementation, but its not working for me).

    Another issue probably related to this is when i try to delete something it gives me the error: ( Cannot locate the parent of appointment with ID ='....guid...' Ensure that the parent appointment with ID = '').

    My appointment Key is a Guid, if that helps.

    Thanks

    Fabio
  9. Fabio Honigmann
    Fabio Honigmann avatar
    24 posts
    Member since:
    May 2007

    Posted 30 May 2008 Link to this post

    I found my problem, the RecurrenceParentId was returning empty instead of null.

    Thanks.

    Fabio
Back to Top