Theme For Telerik Chart

2 posts, 0 answers
  1. Projects Computerra
    Projects Computerra avatar
    33 posts
    Member since:
    Aug 2009

    Posted 04 Jul 2011 Link to this post

    Hello,

    I have some strange issue. I have added theme in app.xaml file and used that theme in my chart display from the code behind. Its working fine for some chart. But get below mentioned exception for below mentioned charts:

    • LineSeriesDefinition
    • StackedLineSeriesDefinition
    • StackedAreaSeriesDefinition
    • SplineAreaSeriesDefinition
    • StackedSplineAreaSeriesDefinition


    Exception:

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)
    Timestamp: Mon, 4 Jul 2011 07:19:06 UTC

    Message: Unhandled Error in Silverlight Application
    Code: 4004   
    Category: ParserError      
    Message: System.Windows.Markup.XamlParseException:  [Line: 0 Position: 0] ---> System.Windows.Markup.XamlParseException: Failed to assign to property 'System.Windows.Shapes.Path.Data'. [Line: 2993 Position: 36]
       at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
       at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
       at MS.Internal.XcpImports.FrameworkElement_ApplyTemplate(FrameworkElement frameworkElement)
       at System.Windows.Controls.Control.ApplyTemplate()
       at Telerik.Windows.Controls.ItemsControlExtensions.GetItemsPanelRecursive[TPanel](DependencyObject control)
       at Telerik.Windows.Controls.ItemsControlExtensions.GetItemsPanel[TPanel](DependencyObject itemsControl)
       at Telerik.Windows.Controls.Charting.ItemsControlExtensions.InvalidateItemsPanelMeasureRecursive(ItemsControl control)
       at Telerik.Windows.Controls.Charting.SelfDrawingSeries.InitializeSeriesGeometry()
       at Telerik.Windows.Controls.Charting.SelfDrawingSeries.OnApplyTemplate()
       at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
       --- End of inner exception stack trace ---
       at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
       at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
       at MS.Internal.XcpImports.FrameworkElement_ApplyTemplate(FrameworkElement frameworkElement)
       at System.Windows.Controls.ItemContainerGenerator.LayoutStatesManager.GetElementRoot(Boolean templatesAreGenerated)
       at System.Windows.Controls.ItemContainerGenerator.LayoutStatesManager.Load()
       at System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(DependencyObject container)
       at System.Windows.Controls.ItemsControl.AddVisualChild(Int32 containerIndex, DependencyObject container, Boolean needPrepareContainer)
       at System.Windows.Controls.ItemsControl.AddContainers()
       at System.Windows.Controls.ItemsControl.RecreateVisualChildren(IntPtr unmanagedObj)    
    File:     
    Line: 2993    
    Position: 36    

    Line: 56
    Char: 13
    Code: 0
    URI: http://localhost:49940/TeletikRadChartTestPage.aspx

    If i set that theme as IsApplicationTheme="True" then its working fine. But I do not want to use it as my default theme for application.
    Please give me ur response for the same ASAP.

    Thanks,
    Projects

     

  2. Sia
    Admin
    Sia avatar
    765 posts

    Posted 05 Jul 2011 Link to this post

    Hi Projects Computerra,

    I have tested your scenario and I confirm that we have such issue with our weekly build with version greater than 606. The fix will be included in our next weekly build on Monday. Meanwhile please use our official Q1 SP1 version (419).

    Please excuse us for the inconvenience caused and find your Telerik points updated.

    Kind regards,
    Sia
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top