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

'ResourceName' was not found in type 'Resource'

1 Answer 62 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 07 May 2012, 10:56 PM
Hello, I have a mistake that is driving me crazy, I have a RadScheduleView implemented and I need to separate it by groups.  I had implemented what I want following http://www.telerik.com/help/silverlight/radscheduleview-features-resources.html  I'm able to compile correctly but I had the error in execution time: The property 'ResourceName' was not found in type 'Resource'

Here's my code:

<telerik:RadScheduleView.GroupDescriptionsSource>
           <telerik:GroupDescriptionCollection>
                <telerik:ResourceGroupDescription ResourceType="ProfesionalesGroup" />
            </telerik:GroupDescriptionCollection>
</telerik:RadScheduleView.GroupDescriptionsSource>
 
<telerik:RadScheduleView.ResourceTypesSource>
             <telerik:ResourceTypeCollection>
                      <telerik:ResourceType Name="ProfesionalesGroup">
                                <telerik:Resource ResourceName="Profesional1" DisplayName="Profesional 1" />
                                <telerik:Resource ResourceName="Profesional2" DisplayName="Profesional 2"/>
                      </telerik:ResourceType>
             </telerik:ResourceTypeCollection>
</telerik:RadScheduleView.ResourceTypesSource>

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 09 May 2012, 09:14 AM
Hi Alan,

Could you try defining a new namespace in xaml for the ScheduleView's assembly and use it instead of the common telerik namespace when working with resources? Here is sample code:
xmlns:scheduleView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView"
...
            <telerik:RadScheduleView.GroupDescriptionsSource>
                <telerik:GroupDescriptionCollection>
                    <scheduleView:ResourceGroupDescription ResourceType="ProfesionalesGroup" />
                </telerik:GroupDescriptionCollection>
            </telerik:RadScheduleView.GroupDescriptionsSource>
 
            <scheduleView:RadScheduleView.ResourceTypesSource>
                <scheduleView:ResourceTypeCollection>
                    <scheduleView:ResourceType Name="ProfesionalesGroup">
                        <scheduleView:Resource ResourceName="Profesional1" DisplayName="Profesional 1" />
                        <scheduleView:Resource ResourceName="Profesional2" DisplayName="Profesional 2"/>
                    </scheduleView:ResourceType>
                </scheduleView:ResourceTypeCollection>
            </scheduleView:RadScheduleView.ResourceTypesSource>


Greetings,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ScheduleView
Asked by
Alan
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or