ViewDefinition Problem

9 posts, 0 answers
  1. Forest
    Forest avatar
    72 posts
    Member since:
    Aug 2010

    Posted 08 Jul 2011 Link to this post

    Hi

    I'm doing Migration from Radscheduler.

    i have defined the View Definitions but i've still the message "Please Select a view définition".

    <telerik:RadScheduleView x:Name="EmployeeScheduler">
        <telerik:RadScheduleView.ViewDefinitions>
            <telerik:MonthViewDefinition />
        </telerik:RadScheduleView.ViewDefinitions>
    </telerik:RadScheduleView>

    The view button appeared but his Title is not correct.
    In my case it must be the month View.

    Can you help me please ?

    Thanks

    Mathieu  
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 08 Jul 2011 Link to this post

    Hi Forest,

    Most probably you are referencing both Scheduler and ScheduleView assemblies and the XAML parser tries to load the MonthViewDefinition class from the Scheduler assembly... I would recommend removing the reference to the Scheduler assembly.

    Kind regards,
    Valeri Hristov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. Forest
    Forest avatar
    72 posts
    Member since:
    Aug 2010

    Posted 11 Jul 2011 Link to this post

    Hello

    So i can't use into my solution one project with scheduler and one project with ScheduleView ?
    That's it ?

    Mathieu
  4. Pana
    Admin
    Pana avatar
    748 posts

    Posted 15 Jul 2011 Link to this post

    Hello Forest,

    You can but you will have to take extra care of the namespaces and more precisely the assemblies.
    <UserControl x:Class="SilverlightApplication3.MainPage"
            mc:Ignorable="d"
            xmlns:scheduleView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView"
            d:DesignHeight="300" d:DesignWidth="400">
      
        <Grid x:Name="LayoutRoot" Background="White">
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <telerik:RadScheduleView Grid.Row="0">
                <telerik:RadScheduleView.AppointmentsSource>
                    <telerik:ObservableAppointmentCollection />
                </telerik:RadScheduleView.AppointmentsSource>
                <telerik:RadScheduleView.ViewDefinitions>
                    <scheduleView:DayViewDefinition />
                    <scheduleView:WeekViewDefinition />
                    <scheduleView:MonthViewDefinition />
                    <scheduleView:TimelineViewDefinition />
                </telerik:RadScheduleView.ViewDefinitions>
            </telerik:RadScheduleView>
            <telerik:RadScheduler Grid.Row="1" />
        </Grid>
    </UserControl>


    Regards,
    Pana
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  5. Forest
    Forest avatar
    72 posts
    Member since:
    Aug 2010

    Posted 21 Jul 2011 Link to this post

    Hi

    I succeded in display appointments.

    But when i try to change the Title of one of the view definitions, i had a bad display.

    <telerik:RadScheduleView x:Name="EmployeeScheduler"                                         
                             AppointmentsSource="{Binding AppointmentList, Mode=TwoWay}"
                             NavigationHeaderVisibility="Visible"
                             ActiveViewDefinitionIndex="2"
                             >
        <telerik:RadScheduleView.ViewDefinitions>
            <scheduleView:DayViewDefinition Title="Jour"/>
            <scheduleView:WeekViewDefinition/>
            <scheduleView:MonthViewDefinition/>
            <scheduleView:TimelineViewDefinition/>
        </telerik:RadScheduleView.ViewDefinitions>
       </telerik:RadScheduleView>

    Have you got an idea ?

    Thanks

    Mathieu  
  6. Pana
    Admin
    Pana avatar
    748 posts

    Posted 27 Jul 2011 Link to this post

    Hello Forest,

    We are localizing the title of the view definition in the control template of the RadScheduleView which does not seem such a good idea now. We will take a look into the header and try to fix the problem for one of the upcoming internal builds.

    Best wishes,
    Pana
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  7. Forest
    Forest avatar
    72 posts
    Member since:
    Aug 2010

    Posted 28 Jul 2011 Link to this post

    Hi

    Ok. It will be fixed for the service pack in September ?

    Thank you
  8. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 28 Jul 2011 Link to this post

    Yes, this will be fixed for the SP.

    Kind regards,
    Valeri Hristov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  9. Pana
    Admin
    Pana avatar
    748 posts

    Posted 29 Jul 2011 Link to this post

    Hi Forest,

    I have double checked both the latest release and the 2011.1.419 version of the RadScheduleView but they both seem to work fine. However in your example you have a custom styles for the RadScheduleView. Could you try the SP2 release dlls with your project and send us the RadScheduleView xaml you are using so we can reproduce the problem here?

    Greetings,
    Pana
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top