Skip to content

Commit 7933223

Browse files
committed
chore: update services
1 parent 929d404 commit 7933223

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

Kendo-UI-Bootstrap-Integration/src/Kendo-UI-Bootstrap-Integration/Models/Task.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public Task()
1010
this.Tasks1 = new HashSet<Task>();
1111
}
1212

13-
public int TaskID { get; set; }
13+
public int MeetingID { get; set; }
1414
public System.DateTime Start { get; set; }
1515
public System.DateTime End { get; set; }
1616
public string Title { get; set; }

Kendo-UI-Bootstrap-Integration/src/Kendo-UI-Bootstrap-Integration/Models/TaskViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
public class TaskViewModel : ISchedulerEvent
1010
{
11-
public int TaskID { get; set; }
11+
public int MeetingID { get; set; }
1212
public string Title { get; set; }
1313
public string Description { get; set; }
1414

@@ -52,7 +52,7 @@ public Task ToEntity()
5252
{
5353
return new Task
5454
{
55-
TaskID = TaskID,
55+
MeetingID = MeetingID,
5656
Title = Title,
5757
Start = Start,
5858
StartTimezone = StartTimezone,

Kendo-UI-Bootstrap-Integration/src/Kendo-UI-Bootstrap-Integration/Views/Home/Index.cshtml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
.Name("revenue")
6464
.DataSource(ds => ds.Read(read => read.Action("Revenue", "Home")))
6565
.Transitions(false)
66-
.Theme("sass")
6766
.ChartArea(chart => chart.Margin(m => m.Top(15))
6867
.Background("transparent"))
6968
.Legend(l => l.Visible(false))
@@ -99,7 +98,6 @@
9998
.Name("sales-per-day")
10099
.DataSource(ds => ds.Read(read => read.Action("SalesPerDay", "Home")))
101100
.Transitions(false)
102-
.Theme("sass")
103101
.ChartArea(chart => chart.Margin(m => m.Top(15))
104102
.Background("transparent"))
105103
.Legend(l => l.Visible(false))
@@ -122,7 +120,6 @@
122120
.Name("sales-per-region")
123121
.DataSource(ds => ds.Read(read => read.Action("SalesPerRegion", "Home")))
124122
.Transitions(false)
125-
.Theme("sass")
126123
.Legend(l=>l.Visible(false))
127124
.ChartArea(c=>c.Margin(m => m.Top(15))
128125
.Background("transparent"))
@@ -153,7 +150,6 @@
153150
.Name("market-alice-mutton")
154151
.DataSource(ds => ds.Read(read => read.Action("AliceMutton", "Home")).Group(g => g.Add(d=> d.Series)))
155152
.Transitions(false)
156-
.Theme("sass")
157153
.Title(t => t
158154
.Text("Alice Mutton")
159155
.Position(ChartTitlePosition.Bottom)
@@ -176,7 +172,6 @@
176172
.Name("market-gravad")
177173
.DataSource(ds => ds.Read(read => read.Action("Gravad", "Home")).Group(g => g.Add(d=> d.Series)))
178174
.Transitions(false)
179-
.Theme("sass")
180175
.Title(t => t
181176
.Text("Gravad lax")
182177
.Position(ChartTitlePosition.Bottom)
@@ -199,7 +194,6 @@
199194
.Name("market-inlagd")
200195
.DataSource(ds => ds.Read(read => read.Action("Inlagd", "Home")).Group(g => g.Add(d=> d.Series)))
201196
.Transitions(false)
202-
.Theme("sass")
203197
.Title(t => t
204198
.Text("Inlagd Sill")
205199
.Position(ChartTitlePosition.Bottom)
@@ -222,7 +216,6 @@
222216
.Name("market-spageslid")
223217
.DataSource(ds => ds.Read(read => read.Action("Spegesild", "Home")).Group(g => g.Add(d=> d.Series)))
224218
.Transitions(false)
225-
.Theme("sass")
226219
.Title(t => t
227220
.Text("Spageslid")
228221
.Position(ChartTitlePosition.Bottom)
@@ -423,21 +416,21 @@
423416
.Scrollable(s => s.Enabled(false))
424417
.DataSource(dataSource => dataSource
425418
.Custom()
426-
.Type("odata")
419+
.Type("odata-v4")
427420
.PageSize(10)
428421
.ServerPaging(true)
429422
.ServerSorting(true)
430423
.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")))
432425
)
433426

434427
)
435428

436429
@(Html.Kendo().Scheduler<Kendo_UI_Bootstrap_Integration.Scheduler.TaskViewModel>()
437430
.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))
441434
.HtmlAttributes(new { @class = "ra-section" })
442435
.Views(views =>
443436
{
@@ -451,13 +444,13 @@
451444
.Custom()
452445
.Transport(t => t
453446
.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"))
456449
)
457450
.Schema(schema => schema
458451
.Model(m =>
459452
{
460-
m.Id(f => f.TaskID);
453+
m.Id(f => f.MeetingID);
461454
m.Field("title", typeof(string)).DefaultValue("No title").From("Title");
462455
m.Field("start", typeof(DateTime)).From("Start");
463456
m.Field("end", typeof(DateTime)).From("End");
Binary file not shown.

0 commit comments

Comments
 (0)