default theme

5 posts, 0 answers
  1. Morten
    Morten avatar
    345 posts
    Member since:
    Jul 2012

    Posted 09 Jan 2015 Link to this post

    I'm including the css below in my page, however, still have to set the theme explicitly to "bootstrap".

    1. Am I missing a file?

    "~/Content/kendo/kendo.common-bootstrap.css",
    "~/Content/kendo/kendo.bootstrap.css",
    "~/Content/kendo/kendo.dataviz.css",
    "~/Content/kendo/kendo.dataviz.bootstrap.css",
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2527 posts

    Posted 09 Jan 2015 Link to this post

    Hello Morten,

    You are not missing a file; the chart themes must be set explicitly in order to change the theme, because the chart styles are rendered in SVG/VML elements or Canvas via JavaScript, rather than being styled via CSS. The CSS files are minimalistic and style only the HTML part of the chart (tooltips, navigator).

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Morten
    Morten avatar
    345 posts
    Member since:
    Jul 2012

    Posted 09 Jan 2015 in reply to Alex Gyoshev Link to this post

    Hi Alex
    thanks for your reply.
    Can I somehow set the theme at the site or page level, or must I set the theme for each chart (other widget)?
    /Morten
  4. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2527 posts

    Posted 12 Jan 2015 Link to this post

    Hello Morten,

    You can change the default options of all charts of the page, like this:

    kendo.dataviz.ui.Chart.fn.options.theme = "black";

    Here is a Dojo snippet that shows this in action. Note that this affects only the charts, not all dataviz widgets (i.e. you will need another line for the RadialGauge).

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Morten
    Morten avatar
    345 posts
    Member since:
    Jul 2012

    Posted 13 Jan 2015 in reply to Alex Gyoshev Link to this post

    thanks a lot
Back to Top