|
| 1 | +--- |
| 2 | +title: Show more events in the view cells |
| 3 | +page_title: Show more events in the view cells |
| 4 | +description: Show more events in the view cells |
| 5 | +--- |
| 6 | + |
| 7 | +# Show more events in the view cells |
| 8 | + |
| 9 | +The example below demonstrates how to increase the height of the cells to show more events |
| 10 | + |
| 11 | +#### Example: |
| 12 | + |
| 13 | +```html |
| 14 | + <style> |
| 15 | + /*increase the height of the cells in day, work week and week views |
| 16 | + .k-scheduler-table td, .k-scheduler-table th |
| 17 | + { |
| 18 | + height: 5.5em; |
| 19 | + } |
| 20 | +
|
| 21 | + /*increase the height of the month view cells |
| 22 | + .k-scheduler-monthview .k-scheduler-table td |
| 23 | + { |
| 24 | + height: 15.5em; |
| 25 | + } |
| 26 | + </style> |
| 27 | + <div id="scheduler"></div> |
| 28 | + <script> |
| 29 | + $("#scheduler").kendoScheduler({ |
| 30 | + date: new Date("2013/6/13"), |
| 31 | + startTime: new Date("2013/6/13 07:00 AM"), |
| 32 | + height: 600, |
| 33 | + views: [ |
| 34 | + "day", |
| 35 | + { type: "workWeek" }, |
| 36 | + "week", |
| 37 | + {type: "month", selected: true}, |
| 38 | + "agenda" |
| 39 | + ], |
| 40 | + timezone: "Etc/UTC", |
| 41 | + dataSource: { |
| 42 | + batch: true, |
| 43 | + transport: { |
| 44 | + read: { |
| 45 | + url: "http://demos.telerik.com/kendo-ui/service/tasks", |
| 46 | + dataType: "jsonp" |
| 47 | + }, |
| 48 | + update: { |
| 49 | + url: "http://demos.telerik.com/kendo-ui/service/tasks/update", |
| 50 | + dataType: "jsonp" |
| 51 | + }, |
| 52 | + create: { |
| 53 | + url: "http://demos.telerik.com/kendo-ui/service/tasks/create", |
| 54 | + dataType: "jsonp" |
| 55 | + }, |
| 56 | + destroy: { |
| 57 | + url: "http://demos.telerik.com/kendo-ui/service/tasks/destroy", |
| 58 | + dataType: "jsonp" |
| 59 | + }, |
| 60 | + parameterMap: function(options, operation) { |
| 61 | + if (operation !== "read" && options.models) { |
| 62 | + return {models: kendo.stringify(options.models)}; |
| 63 | + } |
| 64 | + } |
| 65 | + }, |
| 66 | + schema: { |
| 67 | + model: { |
| 68 | + id: "taskId", |
| 69 | + fields: { |
| 70 | + taskId: { from: "TaskID", type: "number" }, |
| 71 | + title: { from: "Title", defaultValue: "No title", validation: { required: true } }, |
| 72 | + start: { type: "date", from: "Start" }, |
| 73 | + end: { type: "date", from: "End" }, |
| 74 | + startTimezone: { from: "StartTimezone" }, |
| 75 | + endTimezone: { from: "EndTimezone" }, |
| 76 | + description: { from: "Description" }, |
| 77 | + recurrenceId: { from: "RecurrenceID" }, |
| 78 | + recurrenceRule: { from: "RecurrenceRule" }, |
| 79 | + recurrenceException: { from: "RecurrenceException" }, |
| 80 | + ownerId: { from: "OwnerID", defaultValue: 1 }, |
| 81 | + isAllDay: { type: "boolean", from: "IsAllDay" } |
| 82 | + } |
| 83 | + } |
| 84 | + } |
| 85 | +
|
| 86 | + }, |
| 87 | + resources: [ |
| 88 | + { |
| 89 | + field: "ownerId", |
| 90 | + title: "Owner", |
| 91 | + dataSource: [ |
| 92 | + { text: "Alex", value: 1, color: "#f8a398" }, |
| 93 | + { text: "Bob", value: 2, color: "#51a0ed" }, |
| 94 | + { text: "Charlie", value: 3, color: "#56ca85" } |
| 95 | + ] |
| 96 | + } |
| 97 | + ] |
| 98 | + }); |
| 99 | + </script> |
| 100 | +``` |
0 commit comments