Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#grid').kendoGrid({
- dataSource: viewmodel.model.AChecklistCompleteSource,
- filterable: true,
- sortable: true,
- pageable: true,
- columns: [{
- field: "createdBy",
- title: "Created By",
- width: 200
- },
- {
- field: "dateCreated",
- title: "Date Created"
- },
- {
- field: "dateModified",
- title: "Date Modified"
- },
- { command: { text: "View Checklist", click: viewmodel.model.showDetails }, title: " ", width: "180px" }
- ],
- toolbar: [{ name: "create", text: "Create Checklist" }, { name: "save", text: "Save Checklist" }, "cancel"],
- editable: "inline",
- saveChanges: function (e) {
- //How do I manually save here so that my navigation property is not null for this row's model?
- if (!confirm("Are you sure you want to save all changes?")) {
- e.preventDefault();
- }
- },
- height: 500
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement