$(function () {
    $("#productGrid").kendoGrid({
        dataSource: productStore,
        height: "800px",
        sortable: {
            mode: "multiple",
            allowUnsort: true
        },
        pageable: true,
        //groupable: true,
        scrollable: true,
        filterable: true,
        columns: [
            { field: "ProductName", title: "Product Name" },
            { field: "UnitPrice", title: "Unit Price", format: "{0:c}" },
            { field: "UnitsInStock", title: "Units In Stock" },
            { field: "Discontinued" },
            { command: ["edit", "destroy"], title: "", width: "153px" }
        ],
        editable: {
            mode: "popup",
            confirmation: "Are you really, really sure you want to delete this product?",
            //confirmation: false
            template: $("#_productEdit").html()
        },
        toolbar: ["create"]
    });
});