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

Bind RadSchedular from server side

1 Answer 56 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Hrushikesh Mokashi
Top achievements
Rank 1
Hrushikesh Mokashi asked on 22 Sep 2008, 09:21 AM
Hi All,

I am using RadSchedular

I want to assign datatable to radschedular from codebehind like we assign datatable to radgrid.
How can be it possible in all view. (day/month/week)

Thanks

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 22 Sep 2008, 12:34 PM
Hello,

Thank you for using our products. In order to bind RadScheduler to a DataTable you need to perform the following steps:

1. Set the name of the columns in the corresponding RadScheduler properties:

<telerik:RadScheduler ... 
            DataKeyField="ID" DataSubjectField="Subject" 
            DataStartField="Start" DataEndField="End" 
            DataRecurrenceField="RecurrenceRule" 
            DataRecurrenceParentKeyField="RecurrenceParentId"
</telerik:RadScheduler> 

2. Set the data source in page load:

 private void Page_Load(object sender, EventArgs e) 
    RadScheduler1.DataSource = AppointmentsTable; 

You can use the following example as a reference:

http://demos.telerik.com/ASPNET/Prometheus/Scheduler/Examples/BindToList/DefaultCS.aspx

I hope this helps.

Regards,
Tsvetomir Tsonev
the Telerik team

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