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

[Solved] How to bind the datasource in code behind

2 Answers 287 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
sabarishbabu
Top achievements
Rank 1
sabarishbabu asked on 21 Jul 2009, 10:54 AM
Hi,
1.I am new to telerik RadScheduler
2.I was able to bind the dataset to RadScheduler its working fine.
3.How can I bind dataset to the <ResourceTypes> in code behind ?.

Thanks
Sabarish


2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 22 Jul 2009, 03:15 PM
Hello sabarish,

Here is a sample code how to add a resource type dynamically:
protected void Page_Load(object sender, EventArgs e)  
    {  
        ResourceType rt = new ResourceType("MyResType");  
        rt.ForeignKeyField = "MyResTypeID";  
        rt.KeyField = "ID";  
        rt.TextField = "Text";  
        rt.DataSource = "MyDataSet";  
        RadScheduler1.ResourceTypes.Add(rt);  
    } 

Let us know if you have further questions.


Greetings,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
sabarishbabu
Top achievements
Rank 1
answered on 23 Jul 2009, 06:36 AM

Hi Peter,

 

Thanks for your reply.

 

Thanks
Sabarish
Tags
Scheduler
Asked by
sabarishbabu
Top achievements
Rank 1
Answers by
Peter
Telerik team
sabarishbabu
Top achievements
Rank 1
Share this question
or