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

XamlParseException RadSlider not match TimelineScrollbar

3 Answers 138 Views
TimeLine
This is a migrated thread and some comments may be shown as answers.
Benedikt
Top achievements
Rank 1
Benedikt asked on 17 May 2015, 09:41 PM

Hello,

 

i have a problem with the WPF RadTimeLine-Control from Q1 2015. If 

<UserControl x:Class="......Workflow.WorkflowTimeLine"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Grid>
        <telerik:RadTimeline
                    VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                    PeriodStart="{Binding StartDate, Mode=TwoWay}"
                    PeriodEnd="{Binding EndDate, Mode=TwoWay}"
                    StartPath="Date"
                    DurationPath="Duration"
                    ToolTipPath="Annotation"
            SelectionMode="Single"
                ScrollMode="None"
            GroupExpandMode="None"
            GroupPath="WorkflowName"
                    ItemsSource="{Binding Data}">
            <telerik:RadTimeline.Intervals>
                <telerik:MonthInterval />
                <telerik:WeekInterval />
                <telerik:DayInterval />
                <telerik:HourInterval />
                <telerik:MinuteInterval />
            </telerik:RadTimeline.Intervals>
        </telerik:RadTimeline>
    </Grid>
</UserControl>

The problem appears after updating to the newest assemblies. The error message is: XamlParseException. TargetType 'RadSlider' does not match the type of elements 'TimelineScrollBar'.

I have no idea what's wrong with our code.

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 18 May 2015, 02:10 PM
Hello Sebastian,

The reported behavior is not reproducible on our side. This is why, if the following information does not help, I would ask you to prepare an isolated project demonstrating the issue and send it over in a new support thread. This way we can test it on our side and investigate what is causing this error.

In the meantime you can try the following:
  • At first glance it seems that there is a Style that targets the wrong element. If you have any custom styles you can double check if their TargetType matches the correct element.
  • You can also manually delete the "bin" and "obj" folders of the project and then Clean and Rebuild it.
Please try those suggestions and let me know if they work for you.

Regards,
Martin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Benedikt
Top achievements
Rank 1
answered on 19 May 2015, 08:19 AM

Ive checked all styles and delete all files (bin/obj) and rebuild the solution. Nothing helps. I recognized that, if i change from RadTimeline to GanttView, it also does not work. Than i get the error message:

1.Exception:
2.Line 10 position 10: Error in the constructor of Telerik.Windows.Controls.RadGanttView, the given Binding does not match.
3. 
4.Inner Exception:
5.The value can not be null. Parametername: scrollingService.
The error appears on LoadComponent. The XAML-Code looks is:

01.<UserControl x:Class=".....Framework.Extension.Workflow.WorkflowTimeLine"
03.             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
04.             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
05.             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
06.             mc:Ignorable="d"
07.             d:DesignHeight="300" d:DesignWidth="300"
08.             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
09.    <Grid>
10.        <telerik:RadGanttView x:Name="ganttView">
11.            <telerik:RadGanttView.Columns>
12.                <telerik:TreeColumnDefinition Header="Title" Width="AutoHeaderAndContent"/>
13.                <telerik:ColumnDefinition MemberBinding="{Binding Start}" Header="Start" Width="AutoHeaderAndContent"/>
14.                <telerik:ColumnDefinition MemberBinding="{Binding End}" Header="End" Width="AutoHeaderAndContent"/>
15.            </telerik:RadGanttView.Columns>
16.        </telerik:RadGanttView>
17.    </Grid>
18.</UserControl>

 ​I have isolated the problematic source code in a very simple application, than every thing works.

0
Martin Ivanov
Telerik team
answered on 22 May 2015, 07:16 AM
Hello Sebastian,

We ware not able to reproduce this error also. However, recently we received a report for the same error in a similar scenario. In this case the error appeared because of difference in the versions of the referenced Telerik assemblies and it was resolve by referencing the correct dlls, and cleaning/rebuilding the project.

I am afraid that without reproducing the errors that you reported we won't be able to investigate what is causing them. This is why I would give you the few suggestions that you can try to resolve the issues:
  • You can test your project on another machine and see if it works there.
  • If the project is not too big you can copy its implementation in a new project and see if the errors still occurs.
  • You can check if all Telerik dlls are of the same version and targeting the same .NET framework, which also should match the VS project's Target Framework. 
  • You can check if the HintPaths of the Telerik dlls leads to the correct locations and if not edit them manually in the .csproj file.

If this doesn't work you can start trimming your project until its gets relatively simple and while the errors still occur. Then send it over so that we can test it locally and investigate the reason behind the issue. 

Thank you for any help you can provide.

Regards,
Martin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
TimeLine
Asked by
Benedikt
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Benedikt
Top achievements
Rank 1
Share this question
or