Greetings,
I have a problem with assigning data to schedule at code behind.
in html, i have already created a resourcetype for the schedule.
at the code behind, I can find the resourcetype and attach a dataset to it. however, although the grouping is done, the appointments are not shown, so I have to concatenate 2 datasets and assign them to scheduler as datasource (and this creates problems). How can I bind data to scheduler without using scheduler.datasource = dataset and scheduler.databind() mehtods ? because i want to add the second dataset as another resouce and
here is what i am using at the moment
I have a problem with assigning data to schedule at code behind.
in html, i have already created a resourcetype for the schedule.
<ResourceTypes> <telerik:ResourceType ForeignKeyField="UserID" KeyField="UserID" TextField="fullname" Name="myResource" /></ResourceTypes>here is what i am using at the moment
public void BindSchedule() { DataSet ds2 = myObj.GetScheduleData(ddlGroup.SelectedValue); DataSet ds1 = myObj.EngineerDailyAssignmentGet(ddlGroup.SelectedValue); ds2.Merge(ds1); ResourceType t = radZeitPlan.ResourceTypes.FindByName("myResource") as ResourceType; t.DataSource = ds2; radScheduler.DataSource = ds1; radZeitPlan.DataBind(); radZeitPlan.GroupBy = "myResource"; }