want to know the current resource details

2 posts, 0 answers
  1. hema
    hema avatar
    16 posts
    Member since:
    Mar 2011

    Posted 14 Jul 2011 Link to this post

    Hi
    i am dynamically setting the resources(may be multiple).
    when i am double cliking on scheduler new appointment window is opening, that time i want to know from which resource i am creating appointment

    Thanks
    Hema
  2. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 19 Jul 2011 Link to this post

    Hi Hema,

    Thank you for your question.

    You can subscribe to the AppointmentEditDialogShowing event and extract from the event args the resource for which an appointment will be created or edited. Here is a sample code:
    void radScheduler1_AppointmentEditDialogShowing(object sender, AppointmentEditDialogShowingEventArgs e)
    {
        this.radScheduler1.Resources.GetById(e.Appointment.ResourceId);
    }

    I hope this is useful. Feel free to ask if you have any additional questions.

    Kind regards,
    Ivan Todorov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top