Customize Smartlabel Style

2 posts, 1 answers
  1. Kz
    Kz avatar
    32 posts
    Member since:
    Oct 2012

    Posted 13 Dec 2016 Link to this post

    Hi There,


    How can I change SmartLabel background > Its by default a Textblock.

    How can i change it to label or some other  control?



  2. Answer
    Dinko avatar
    1078 posts

    Posted 16 Dec 2016 Link to this post

    Hi sri,

    Let first start you mark this thread for the old RadChart control. For new development, we urge you not to use the old RadChart but use the new RadChartView. The new chart view is actually a set of controls - RadCartesianChart, RadPieChart, RadPolarChart, ChartDataSource. It is much faster, very flexible, resolves almost all limitations the old control had and is pretty easy to set up. You can read about the differences between the components in the RadChart vs. RadChartView help article.

    In the new chart, you can replace the TextBlock in the labels by specifying a custom DataTemplate and set it to the Template property of the ChartSeriesLabelDefinition. In the data template, you can specify different control than textblock. You can take a look at the Label Definition help article in our documentation.

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top