appointment.ResourceCollection.Add(new Resource()
{
ResourceName = "Symbol1",
TypeName = "Symbols"
});
Knowing ResourceName is required while adding new appointment under particular resource, otherwise appointment is not displayed.
When I add a new appointment from code behind with: ResourceName = "Symbol1", TypeName = "Symbols"
then appointment is properly displayed.
For the project I used Custom Appointment Editor from CustomizationDemo.
I checked ScheduleResourcePagerWithExpander but there is no pointer how to get the name or index.
Thanks in advance.
I use two Resource Types with several resources in each type. When adding new appointment through context menu, need to know a name of a resource on which mouse was clicked, to use it in:appointment.ResourceCollection.Add(new Resource()
{
ResourceName = "Symbol1",
TypeName = "Symbols"
});
Knowing ResourceName is required while adding new appointment under particular resource, otherwise appointment is not displayed.
When I add a new appointment from code behind with: ResourceName = "Symbol1", TypeName = "Symbols"
then appointment is properly displayed.
For the project I used Custom Appointment Editor from CustomizationDemo.
I checked ScheduleResourcePagerWithExpander but there is no pointer how to get the name or index.
Thanks in advance.
void Schedule_AppointmentEditorOpening(object sender, AppointmentEditorOpeningEventArgs e)
{
e.Cancel = true;
AddDataContext = new BindingClass() {CurrentSelectedDate = e.StartTime, Appointment = e.Appointment,};
SelectedResource = new ObservableCollection<object>();
foreach (var item in e.SelectedResource)
SelectedResource.Add(item);
………………
} |