Kendo

  • UI Framework
  • Mobile
  • Demos
  • Roadmap
  • What's New
  • Download

Skin

  • Framework
  • UI Widgets
  • Integration

    • Description
    • View Code

    Templates offer way of creating html chunks. Options such as html encoding and compilation for optimal performance are available.

    Basic template

    
     var inlineTemplate = kendo.template("Hello, #= firstName # #= lastName #");
     var inlineData = { firstName: "John", lastName: "Doe" };
     $("#inline").html(inlineTemplate(inlineData));
     Output:
     Hello, John Doe!

    Encoding HTML

    
    var encodingTemplate = kendo.template("HTML tags are encoded like this - ${ html }");
    var encodingData = { html: "<strong>lorem ipsum</strong>" };
    $("#encoding").html(encodingTemplate(encodingData));
     Output:
     HTML tags are encoded like this - <strong>lorem ipsum</strong>
    No code
    • Home
    • UI Framework
    • Mobile
    • Demos
    • Roadmap
    • What's New
    • Blogs
    • Forums
    • Documentation
    • FAQ
    • About
    • Follow us on Twitter
    • Subscribe to our RSS feed

    Kendo UI is powered by Telerik

    Copyright © 2011 Telerik Inc. All rights reserved.