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

[Solved] Adding Resources through Code Behind

1 Answer 161 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 2
David asked on 21 Feb 2008, 05:16 PM
I'm trying to add resources to the radscheduler (Room, Type, etc).  I see in the documentation how to do this with the datasource pulling from SQL, but what about just adding values in the code behind file and textboxes which allow the user to input whatever the want?

Thanks,
-David

1 Answer, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 22 Feb 2008, 04:08 PM
Hi David,

You can generally add resources to the Resources collection of RadScheduler in the FormCreating event.

protected void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e) 
    RadScheduler1.Resources.Add(new Resource("User", 1, "Tom")); 

Free-form text data is handled through custom attributes. You can look at an example here.

Kind regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
David
Top achievements
Rank 2
Answers by
T. Tsonev
Telerik team
Share this question
or