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

[Solved] Update in simple mode not working

1 Answer 72 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 13 Apr 2009, 05:02 PM
Hello.

I have a simple test I'm doing. I have resources defined and they are showing up just fine. When I insert an appointment and select a resource, everything works fine, both in "simple" mode and advanced mode. When I go to edit that same appointment I just inserted in "simple" mode, the update happens, but my resource is updated as null. When I go in to advanced edit mode and update the appoinment, my resource is maintained. Does anyone have any ideas about why this might happen?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 14 Apr 2009, 10:14 AM
Hello Brian,

Inline inserts do not set a resource by default unless the scheduler is grouped by that resource. If this behavior is not wanted you can use some code to always assign a resource:

        protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)
        {
            if (e.Appointment.Resources.Count < 1)
                e.Appointment.Resources.Add(RadScheduler1.Resources.GetResource("Calendar", "1"));
        }

Regards,
Albert
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Brian
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or