invisible radpiechart

6 posts, 0 answers
  1. John
    John avatar
    7 posts
    Member since:
    Aug 2014

    Posted 21 Aug 2014 Link to this post

    Hi. I added to the project Telerik.Windows.Controls, Telerik.Windows.Controls.Chart, Telerik.Windows.Controls.DataVisualization and xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" and then code from this page http://www.telerik.com/help/silverlight/radchartview-series-pieseries.html
    Unfortunately, the chart is not visible. What am I doing wrong?
  2. John
    John avatar
    7 posts
    Member since:
    Aug 2014

    Posted 21 Aug 2014 in reply to John Link to this post

    This admin sample http://www.telerik.com/forums/how-to-set-pie-graph-with-radchartview#-jjEeZgso0aLFcWtfEiRkQ is not visible too :/ what is the problem?
  3. DevCraft banner
  4. John
    John avatar
    7 posts
    Member since:
    Aug 2014

    Posted 21 Aug 2014 in reply to John Link to this post

    screen
  5. John
    John avatar
    7 posts
    Member since:
    Aug 2014

    Posted 21 Aug 2014 in reply to John Link to this post

    ehm screen is dead
  6. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 22 Aug 2014 Link to this post

    Hello Michal,

    Note that, If you are using the NoXaml assemblies you will need to add reference to a theme (for example Telerik.Windows.Themes.Office_Black.dll, which is the default theme). Then you should add the resource dictionaries with the Xaml for the controls in the App.xaml. You could take a look at the Setting a Theme article, which explains the implicit theming mechanism described above. Keep in mind that if you don't add reference to the theme or if you don't merge the control's resource dictionaries, none of the controls will be displayed

    In order to display the RadPieChart you should add reference to any of our themes and add the resource dictionaries for the pie chart:

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Chart.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

    If this doesn't help I would ask you to  provide me with a code or a project which demonstrates the reported behavior.

    Thank you for your cooperation.

    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.
     
  7. John
    John avatar
    7 posts
    Member since:
    Aug 2014

    Posted 22 Aug 2014 in reply to Martin Link to this post

    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Chart.xaml" />

    yes! i added this line in App.xaml and it works. thanks very thanks
Back to Top
DevCraft banner