Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
    <title>KendoUI Test Page</title>
    
    <link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.common.min.css" rel="stylesheet" />
    <link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.default.min.css" rel="stylesheet" />
    <link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.dataviz.min.css" rel="stylesheet" />
    <link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.mobile.all.min.css" rel="stylesheet" />
    <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
    <script src="http://cdn.kendostatic.com/2013.2.716/js/kendo.all.min.js"></script>
</head>
<body>
    <div id="example" data-template="tmp" data-bind="source: data"></div>
    <script id="tmp" type="text/x-kendo-template">
        <p>#: foo #</p>
    </script>
    
    <script>
        var Obj = kendo.data.Model.define( {
            fields: {
                "foo": {
                    type: "number"
                }
            }
        });
        var viewModel = kendo.observable({
            data: [{ foo: 1 }]
        });
        kendo.bind($(document.body), viewModel);
        viewModel.data.push({ foo: 2 });
        viewModel.data.push(new Obj({ foo: 3 }));
    </script>
</body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers