k-grid disable filters

retrieve current edited row

by valchev

HTML

<script src="http://cdn.kendostatic.com/2012.1.322/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.metro.min.css">
<script src="http://demos.kendoui.com/content/shared/js/people.js"></script>
<div id="grid"></div>
<input type="button" onclick="collapseAll()" value="Collapse All"/>
<input type="button" onclick="expandAll()" value="Expand All"/>

CSS

body { 
 margin-top: 30px;   
}

JavaScript

$("#grid").kendoGrid({
    dataSource: {
        data: createRandomData(50),
        schema: {
            model: {
                fields: {
                    FirstName: {
                        type: "string"
                    },
                    LastName: {
                        type: "string"
                    },
                    City: {
                        type: "string"
                    },
                    Title: {
                        type: "string"
                    },
                    BirthDate: {
                        type: "date"
                    },
                    Age: {
                        type: "number"
                    }
                }
            }
        },
        pageSize: 15
    },
    height: 450,
    sortable: true,
    pageable: true,
    groupable: true,
    selectable: "multiple row",
    columns: [
        {
        field: "FirstName",
        title: "First Name"},
    {
        field: "LastName",
        title: "Last Name"},
    {
        field: "City"},
    {
        field: "Title"}
    ]
});

function collapseAll() {
    $("#grid").find(".k-icon.k-collapse").trigger("click");
}

function expandAll() {
    $("#grid").find(".k-icon.k-expand").trigger("click");
}