Advertisement
Guest User

Untitled

a guest
Dec 17th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. $('#grid').kendoGrid({
  2. dataSource: viewmodel.model.AChecklistCompleteSource,
  3. filterable: true,
  4. sortable: true,
  5. pageable: true,
  6. columns: [{
  7. field: "createdBy",
  8. title: "Created By",
  9. width: 200
  10. },
  11. {
  12. field: "dateCreated",
  13. title: "Date Created"
  14. },
  15. {
  16. field: "dateModified",
  17. title: "Date Modified"
  18. },
  19. { command: { text: "View Checklist", click: viewmodel.model.showDetails }, title: " ", width: "180px" }
  20. ],
  21. toolbar: [{ name: "create", text: "Create Checklist" }, { name: "save", text: "Save Checklist" }, "cancel"],
  22. editable: "inline",
  23. saveChanges: function (e) {
  24. //How do I manually save here so that my navigation property is not null for this row's model?
  25. if (!confirm("Are you sure you want to save all changes?")) {
  26. e.preventDefault();
  27. }
  28. },
  29. height: 500
  30. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement