Bare minimum JS/CSS for Switch

4 posts, 0 answers
  1. JohnVS
    JohnVS avatar
    76 posts
    Member since:
    Apr 2013

    Posted 09 Sep 2014 Link to this post

    We are interested in reducing the amount of code needing to load on our website. If we were just wanting to use some specific Kendo components, like Switch, what are the bare minimum Javascript and CSS files that would be required to get Switch to work?

    If we want to use a few other components individually, how would we go about figuring out which JS/CSS files are necessary for those (so we don't have to ask about each one individually)?
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 10 Sep 2014 Link to this post

    Hello John,

    the CSS parts may be hard to break apart, as they have too much common parts. The JS requirements for each component are listed in the following help topic

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. JohnVS
    JohnVS avatar
    76 posts
    Member since:
    Apr 2013

    Posted 10 Sep 2014 Link to this post

    Thanks for the link for the JS requirements. That helps with the JS, but what about the CSS? It "may be hard"? Can we at least get an indication of what files are required to get Kendo working at a minimum? Or a description of what the basic CSS files include or what they affect?

    For instance, we use Bootstrap, but there are multiple files that reference Bootstrap:
    • kendo.bootstrap.min.css
    • kendo.bootstrap.mobile.min.css
    • kendo.common-bootstrap.min.css

    Are all of them necessary? I'm guess in addition to those, you also need to include some kind of Kendo Core CSS file as well? Why does this have to be so confusing? Thanks for any help you can provide.

  5. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 12 Sep 2014 Link to this post

    Hello John,

    In your case, only two files are necessary for the switch to look as expected (check example). More information may be found in the following help sections:

    - Using mobile widgets in a web context (explains the bootstrap.mobile file)
    - Using Kendo UI with Bootstrap (explains the other two files). 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready