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

Defining Resources insert

1 Answer 84 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rubihno
Top achievements
Rank 1
Rubihno asked on 05 Aug 2008, 05:53 PM
Hi,

I have another problem,
I watched the demo scheduler -> resources -> Definining Resources
I show schedule for user, but how do to insert the appointments direct selecting user dropdownd?For example i choose user dropdown(Alex) and I insert direct appointment the user selected...
Associate user select when I insert appointment..I tried but dont' go

Sorry for the questions.

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 07 Aug 2008, 02:14 PM
Hello Rubihno,

You can handle the FormCreating event to preselect the resources.

protected void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e) 
    if ((e.Mode == SchedulerFormMode.AdvancedInsert || e.Mode == SchedulerFormMode.Insert) && 
        e.Appointment.Resources.Count == 0) 
    { 
        // Here 1 is the ID of "Alex" 
        Resource res = RadScheduler1.Resources.GetResource("User", 1); 
        e.Appointment.Resources.Add(res); 
    } 
 

I hope this helps.

Kind regards,
Tsvetomir Tsonev
the Telerik team

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