Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
    <head>
        <title>JS Bin</title>
        <meta charset=utf-8 >
        <link href="http://cdn.kendostatic.com/2013.1.319/styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
        <link href="http://cdn.kendostatic.com/2013.1.319/styles/kendo.rtl.min.css" rel="stylesheet" type="text/css" />
        <link href="http://cdn.kendostatic.com/2013.1.319/styles/kendo.default.min.css" rel="stylesheet" type="text/css" />
        <link href="http://cdn.kendostatic.com/2013.1.319/styles/kendo.dataviz.min.css" rel="stylesheet" type="text/css" />
        <link href="http://cdn.kendostatic.com/2013.1.319/styles/kendo.dataviz.default.min.css" rel="stylesheet" type="text/css" />
        <link href="http://cdn.kendostatic.com/2013.1.319/styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" />
        <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
        <script src="http://cdn.kendostatic.com/2013.1.319/js/kendo.all.min.js"></script>
    </head>
<body>
    <div id="grid">
    </div>
    
    
</body>
</html>
 
$(document).ready(function() {
    var dS = new kendo.data.DataSource({
        data: [
            { name: "Jane Doe", age: 30 },
            { name: "John Doe", age: 33 }
        ],
        pagesize: 10,
        schema: {
            model: {
                id: "Id",
                fields: {
                    name: { editable: false },
                    age:{ editable: true }
                }
            }
        },
        aggregate: [
            { field: "age", aggregate: "count" }
        ]
    });
    
    $("#grid").kendoGrid({
        dataSource: dS,
        columns: [
            { field: "name", title: "Name", width:'20%' },
            { field: "age", title: "Age" , width:'35%', footerTemplate: "Total Count: #=count#" }
        ]
    });
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers