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

Generate resources style according to project group members

1 Answer 45 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sunny Yu
Top achievements
Rank 1
Sunny Yu asked on 21 Apr 2010, 07:26 AM
Hi,

What i am trying to do is to implement the scheduler into a login system.

After logging into the system, the users can have their own set of schedules, there will be a team calendar for them to view  (but not edit ). All the resource styles (eg. different color of the appointment block layout) are automatically generated according to the project group members, and when the user click on a particular appointment, he/she are not suppose to choose any resource (eg. user ).

I am able to generate the resources according to their login role, but i don't know how to disable the related resources in the UI part. 


Thanks,
Sunny
 

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 23 Apr 2010, 01:53 PM
Hello Sunny,

Please, try the following code:
protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
   {
       if (e.Container.Mode == SchedulerFormMode.AdvancedEdit || e.Container.Mode == SchedulerFormMode.AdvancedInsert)
       {
           RadComboBox resUser = e.Container.FindControl("resUser") as RadComboBox;
           resUser.Enabled = false;
       }
   }

"User" is the resource name.

Best wishes,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler
Asked by
Sunny Yu
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or