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

Error: ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type

5 Answers 1343 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Rocco
Top achievements
Rank 1
Rocco asked on 30 Oct 2012, 03:51 PM
Hi,
I'm having some issues using the Gauges: it seems that every element added to the Indicators or CustomItems generates a System.Windows.Data Error. The example in this code
<telerik:RadHorizontalLinearGauge x:Name="EntireGauge" Grid.Row="1">
<telerik:LinearScale Min="0" Max="10" ShowFirstLabel="False" MajorTicks="0" Fill="Green">
<telerik:LinearScale.Indicators>
<telerik:Marker x:Name="PreMarker" Value="3" />
</telerik:LinearScale.Indicators>
<telerik:LinearScale.CustomItems>
<TextBlock Text="CustomItemText" telerik:ScaleObject.Value="5" />
</telerik:LinearScale.CustomItems>
</telerik:LinearScale>
</telerik:RadHorizontalLinearGauge>

cause the following errors:

System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='IndicatorGroup'

System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='TextBlock'


I'm using the version 2012.1.416.40: could you explain me how to fix the issue?

Thank you so much.

Best Regards,
Rocco

5 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 02 Nov 2012, 07:41 AM
Hello Rocco,

We are aware of this problem. It occurs because of the nature of the ItemsControl. This error is handled by ItemsControl internally so you can just ignore this message.
We are looking for the way to eliminate this message. You can check when this problem will be fixed using the following PITS:
http://www.telerik.com/support/pits.aspx#/public/wpf/13189

Kind regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
David
Top achievements
Rank 1
answered on 15 Aug 2014, 06:54 PM
Wow almost 2 years later and there's no fix?  Makes it hard to watch for binding errors in my code when I keep getting Telerik errors in my output window.  
0
Andrey
Telerik team
answered on 19 Aug 2014, 10:46 AM
Hi David,

This problem in the RadGauge control has been fixed a long time ago (November 9, 2012). We can't reproduce it using our latest binaries and VS2012. Could you, please, provide us with a small sample solution which reproduces it?

Regards,
Andrey Murzov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Chris
Top achievements
Rank 1
answered on 09 Sep 2014, 05:55 PM
The binding error message is still there for RadRibbonGroup.
0
Martin Ivanov
Telerik team
answered on 10 Sep 2014, 02:50 PM
Hi Chris,

I don't think I understand how your reply is related to the current thread. If you have a question about the RibbonView can you please open new forum and ask it there. This will help us to organize better our communication history and assist our users better.

Regards,
Martin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Gauges
Asked by
Rocco
Top achievements
Rank 1
Answers by
Andrey
Telerik team
David
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or