'ResourceName' was not found in type 'Resource'

2 posts, 0 answers
  1. Alan
    Alan avatar
    1 posts
    Member since:
    May 2012

    Posted 07 May 2012 Link to this post

    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>
  2. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 09 May 2012 Link to this post

    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 >>

  3. DevCraft banner
Back to Top