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

A value of type 'ResourceType' cannot be added to a collection or dictionary of type 'ResourceTypeCollection'

4 Answers 111 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Grzesiek
Top achievements
Rank 2
Iron
Grzesiek asked on 22 Jun 2020, 10:57 AM

What am I doing wrong?

 

 

4 Answers, 1 is accepted

Sort by
0
Grzesiek
Top achievements
Rank 2
Iron
answered on 22 Jun 2020, 11:29 AM
It seems, that there is a conflict between Telerik.Windows.Scheduling.Core (GanttView) and Telerik.Windows.Controls.ScheduleView.
0
Grzesiek
Top achievements
Rank 2
Iron
answered on 22 Jun 2020, 11:38 AM
Sorry, but I can not edit.
0
Grzesiek
Top achievements
Rank 2
Iron
answered on 22 Jun 2020, 11:39 AM
Attachement
0
Vladimir Stoyanov
Telerik team
answered on 25 Jun 2020, 07:27 AM

Hello Grzesiek,

Thank you for the shared pictures. 

Indeed the ResourceType class is available in both the Scheduling.Core assembly and the RadScheduleView assembly. You can make sure to reference to the correct one:

 xmlns:scheduleView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView"
<scheduleView:ResourceType>
                        <scheduleView:Resource />
</scheduleView:ResourceType>

I hope this helps.

Regards,
Vladimir Stoyanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
ScheduleView
Asked by
Grzesiek
Top achievements
Rank 2
Iron
Answers by
Grzesiek
Top achievements
Rank 2
Iron
Vladimir Stoyanov
Telerik team
Share this question
or