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

6 posts, 0 answers
  1. Rocco
    Rocco avatar
    2 posts
    Member since:
    Oct 2012

    Posted 30 Oct 2012 Link to this post

    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

  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 02 Nov 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. David
    David avatar
    1 posts
    Member since:
    May 2013

    Posted 15 Aug 2014 in reply to Andrey Link to this post

    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.  
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 19 Aug 2014 Link to this post

    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.
     
  6. Chris
    Chris avatar
    23 posts
    Member since:
    May 2011

    Posted 09 Sep 2014 Link to this post

    The binding error message is still there for RadRibbonGroup.
  7. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 10 Sep 2014 Link to this post

    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.
     
Back to Top
UI for WPF is Visual Studio 2017 Ready