"Resources don't exist in Namespace" Error

7 posts, 0 answers
  1. Eric
    Eric avatar
    9 posts
    Member since:
    Jun 2011

    Posted 28 Sep 2011 Link to this post

    I'm trying to declare my resources like what is shown in this example:

    http://www.telerik.com/help/silverlight/radscheduleview-features-resources.html

    In my code, they have the format:
    <telerik:RadScheduleView x:Name="Scheduler" telerik:StyleManager.Theme="Office_Blue" >
            <telerik:RadScheduleView.ResourceTypesSource>
                <telerik:ResourceTypeCollection>
                    <telerik:ResourceType Name="Driver">
                        <telerik:Resource ResourceName="Driver 1"/>
                        <telerik:Resource ResourceName="Driver 2" />
                        <telerik:Resource ResourceName="Driver 3" />
                        <telerik:Resource ResourceName="Driver 4" />
                        <telerik:Resource ResourceName="Driver 5" />
                    </telerik:ResourceType>
                </telerik:ResourceTypeCollection>
            </telerik:RadScheduleView.ResourceTypesSource>
    </telerik:RadScheduleView >


    But when I build, I get the error message
         "The tag 'Resource' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'."

    I don't understand how this is possible, because the Resources show up in intellisense and don't give me an error underline in the code. Yet the project will not build properly.

    Any ideas why this might be happening?

    Thank you in advance.
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 29 Sep 2011 Link to this post

    Hello Eric,

    We're not aware of such an issue in RadScheduleView and we're not able to reproduce it. Could you please open a support ticket and send us a sample project so we can test it at our side? Thanks

    Best wishes,
    Yana
    the Telerik team

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

  3. DevCraft banner
  4. Eric
    Eric avatar
    9 posts
    Member since:
    Jun 2011

    Posted 11 Oct 2011 Link to this post

    Sorry for the late reply on this.
    Looks like I had a small error in my code, but I changed it to the correct format when I generalized it to post in the forum.
  5. Sébastien
    Sébastien avatar
    17 posts
    Member since:
    Mar 2011

    Posted 01 Nov 2011 Link to this post

    Hello,

    I am currently experiencing this issue, I am not sure what I am doing wrong either. Can you assist?

    Regards
  6. Renier Pretorius
    Renier Pretorius avatar
    46 posts
    Member since:
    Apr 2010

    Posted 05 Aug 2013 Link to this post

    Hi

    I am experiencing exactly the same issue:

    <UserControl x:Class="KIO.Logistics.Dashboard.View.VesselListView"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    ...
    <telerik:RadScheduleView Grid.Row="0"
                             MaxTimeRulerExtent="30400"
                             ToolTipTemplate="{StaticResource AppointmentTooltip}"
                             AppointmentsSource="{Binding VesselSchedule}">
        <telerik:RadScheduleView.ResourceTypesSource>
            <telerik:ResourceTypeCollection>
                <telerik:ResourceType Name="PlanningStatus" DisplayName="Status">
                    <telerik:Resource ResourceName="Planned" />
                    <telerik:Resource ResourceName="Scheduled" />
                </telerik:ResourceType>
            </telerik:ResourceTypeCollection>
        </telerik:RadScheduleView.ResourceTypesSource>
         
        <telerik:RadScheduleView.GroupDescriptionsSource>
            <telerik:GroupDescriptionCollection>
                <telerik:ResourceGroupDescription ResourceType="PlanningStatus" />
            </telerik:GroupDescriptionCollection>
        </telerik:RadScheduleView.GroupDescriptionsSource>

    Additional info: I was playing around with different views and previously had a RadGanttChart in the UserControl. Commented it out and removed reverences to relevant telerik assembly.
  7. Renier Pretorius
    Renier Pretorius avatar
    46 posts
    Member since:
    Apr 2010

    Posted 05 Aug 2013 Link to this post

    I have solved this myself. From the online demos, the resource tag is not from the normal telerik http://schemas.telerik.com/2008/xaml/presentation namespace but rather a direct reference to the clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView assembly. This is not clear in the online documentation.
  8. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 07 Aug 2013 Link to this post

    Hi Renier,

    ResourceType and Resource should be found in the normal Telerik namespace defined like this:


    I am not sure what is causing the issue, is it possible to send us a simple demo, so we can research it further?

    Regards,
    Yana
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
DevCraft banner