O'Reilly logo

Instant Kendo UI Grid by James Lamar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using conditional JavaScript (Simple)

This recipe demonstrates how to use JavaScript and Kendo templates to create dynamic content inside your Kendo Grid.

Getting ready

If you've downloaded the exercise files, open 5-javascript.html in your editor or create a new HTML file with the same name.

How to do it...

Copy the following code into your new HTML file:

<!DOCTYPE html> <html> <head> <title>Kendo UI Grid How-to</title> <link rel="stylesheet" type="text/css" href="kendo/styles/kendo.common.min.css"> <link rel="stylesheet" type="text/css" href="kendo/styles/kendo.default.min.css"> <script src="kendo/js/jquery.min.js"></script> <script src="kendo/js/kendo.web.min.js"></script> <script src="js/personData.js"></script> </head> <body> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required