|
63 | 63 | .Name("revenue") |
64 | 64 | .DataSource(ds => ds.Read(read => read.Action("Revenue", "Home"))) |
65 | 65 | .Transitions(false) |
66 | | - .Theme("sass") |
67 | 66 | .ChartArea(chart => chart.Margin(m => m.Top(15)) |
68 | 67 | .Background("transparent")) |
69 | 68 | .Legend(l => l.Visible(false)) |
|
99 | 98 | .Name("sales-per-day") |
100 | 99 | .DataSource(ds => ds.Read(read => read.Action("SalesPerDay", "Home"))) |
101 | 100 | .Transitions(false) |
102 | | - .Theme("sass") |
103 | 101 | .ChartArea(chart => chart.Margin(m => m.Top(15)) |
104 | 102 | .Background("transparent")) |
105 | 103 | .Legend(l => l.Visible(false)) |
|
122 | 120 | .Name("sales-per-region") |
123 | 121 | .DataSource(ds => ds.Read(read => read.Action("SalesPerRegion", "Home"))) |
124 | 122 | .Transitions(false) |
125 | | - .Theme("sass") |
126 | 123 | .Legend(l=>l.Visible(false)) |
127 | 124 | .ChartArea(c=>c.Margin(m => m.Top(15)) |
128 | 125 | .Background("transparent")) |
|
153 | 150 | .Name("market-alice-mutton") |
154 | 151 | .DataSource(ds => ds.Read(read => read.Action("AliceMutton", "Home")).Group(g => g.Add(d=> d.Series))) |
155 | 152 | .Transitions(false) |
156 | | - .Theme("sass") |
157 | 153 | .Title(t => t |
158 | 154 | .Text("Alice Mutton") |
159 | 155 | .Position(ChartTitlePosition.Bottom) |
|
176 | 172 | .Name("market-gravad") |
177 | 173 | .DataSource(ds => ds.Read(read => read.Action("Gravad", "Home")).Group(g => g.Add(d=> d.Series))) |
178 | 174 | .Transitions(false) |
179 | | - .Theme("sass") |
180 | 175 | .Title(t => t |
181 | 176 | .Text("Gravad lax") |
182 | 177 | .Position(ChartTitlePosition.Bottom) |
|
199 | 194 | .Name("market-inlagd") |
200 | 195 | .DataSource(ds => ds.Read(read => read.Action("Inlagd", "Home")).Group(g => g.Add(d=> d.Series))) |
201 | 196 | .Transitions(false) |
202 | | - .Theme("sass") |
203 | 197 | .Title(t => t |
204 | 198 | .Text("Inlagd Sill") |
205 | 199 | .Position(ChartTitlePosition.Bottom) |
|
222 | 216 | .Name("market-spageslid") |
223 | 217 | .DataSource(ds => ds.Read(read => read.Action("Spegesild", "Home")).Group(g => g.Add(d=> d.Series))) |
224 | 218 | .Transitions(false) |
225 | | - .Theme("sass") |
226 | 219 | .Title(t => t |
227 | 220 | .Text("Spageslid") |
228 | 221 | .Position(ChartTitlePosition.Bottom) |
|
423 | 416 | .Scrollable(s => s.Enabled(false)) |
424 | 417 | .DataSource(dataSource => dataSource |
425 | 418 | .Custom() |
426 | | - .Type("odata") |
| 419 | + .Type("odata-v4") |
427 | 420 | .PageSize(10) |
428 | 421 | .ServerPaging(true) |
429 | 422 | .ServerSorting(true) |
430 | 423 | .ServerFiltering(true) |
431 | | - .Transport(t => t.Read(r => r.Url("https://demos.telerik.com/kendo-ui/service/Northwind.svc/Orders"))) |
| 424 | + .Transport(t => t.Read(r => r.Url("https://demos.telerik.com/service/v2/odata/Orders"))) |
432 | 425 | ) |
433 | 426 |
|
434 | 427 | ) |
435 | 428 |
|
436 | 429 | @(Html.Kendo().Scheduler<Kendo_UI_Bootstrap_Integration.Scheduler.TaskViewModel>() |
437 | 430 | .Name("schedule") |
438 | | - .Date(new DateTime(2022, 6, 13)) |
439 | | - .StartTime(new DateTime(2022, 6, 13, 7, 00, 00)) |
440 | | - .EndTime(new DateTime(2022, 6, 13, 20, 00, 00)) |
| 431 | + .Date(new DateTime(2024, 6, 10)) |
| 432 | + .StartTime(new DateTime(2024, 6, 10, 7, 00, 00)) |
| 433 | + .EndTime(new DateTime(2024, 6, 10, 20, 00, 00)) |
441 | 434 | .HtmlAttributes(new { @class = "ra-section" }) |
442 | 435 | .Views(views => |
443 | 436 | { |
|
451 | 444 | .Custom() |
452 | 445 | .Transport(t => t |
453 | 446 | .Read(r => r |
454 | | - .Url("https://demos.telerik.com/kendo-ui/service/meetings") |
455 | | - .DataType("jsonp")) |
| 447 | + .Url("https://demos.telerik.com/service/v2/core/meetings") |
| 448 | + .DataType("json")) |
456 | 449 | ) |
457 | 450 | .Schema(schema => schema |
458 | 451 | .Model(m => |
459 | 452 | { |
460 | | - m.Id(f => f.TaskID); |
| 453 | + m.Id(f => f.MeetingID); |
461 | 454 | m.Field("title", typeof(string)).DefaultValue("No title").From("Title"); |
462 | 455 | m.Field("start", typeof(DateTime)).From("Start"); |
463 | 456 | m.Field("end", typeof(DateTime)).From("End"); |
|
0 commit comments