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

ViewDefinition Problem

8 Answers 150 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Forest
Top achievements
Rank 1
Forest asked on 08 Jul 2011, 05:13 PM
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  

8 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 08 Jul 2011, 06:01 PM
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!

0
Forest
Top achievements
Rank 1
answered on 11 Jul 2011, 04:47 PM
Hello

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

Mathieu
0
Pana
Telerik team
answered on 15 Jul 2011, 08:43 AM
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!

0
Forest
Top achievements
Rank 1
answered on 21 Jul 2011, 10:51 AM
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  
0
Pana
Telerik team
answered on 27 Jul 2011, 08:41 AM
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!

0
Forest
Top achievements
Rank 1
answered on 28 Jul 2011, 08:25 AM
Hi

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

Thank you
0
Valeri Hristov
Telerik team
answered on 28 Jul 2011, 01:54 PM
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!

0
Pana
Telerik team
answered on 29 Jul 2011, 06:34 AM
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!

Tags
ScheduleView
Asked by
Forest
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Forest
Top achievements
Rank 1
Pana
Telerik team
Share this question
or