'How to specify datasource id to scheduler telerik ASP.NET Core
I need client-side filtering with Scheduler. I wish to use Filter with Scheduler. For this, I need to specify datasource id to Scheduler. Different other components accept string parameter in Datasource, but Scheduler isn't. What to do?
View:
@(Html.Kendo().DataSource<CalendarDayVM>()
.Name("daysSource")
.Ajax(d => d.Read("Read", "WorkingCalendar"))
)
@(Html.Kendo().Filter<CalendarDayVM>()
.Name("filter")
.MainLogic(FilterCompositionLogicalOperator.And)
.Operators(c => c.String(s => s.Contains(KendoLocalizer["Contains"])))
.Fields(c =>
c.Add(e => e.ApplicantFullName).Label(UserLocalizer["FullName"]).EditorTemplate("UserEditor")
)
.DataSource("daysSource")
)
@(Html.Kendo().Scheduler<CalendarDayVM>()
.Name("working-calendar")
.Date(DateTime.Now)
.DataSource("daysSource")
)
.Views(views => { views.MonthView(); })
)
Datasource call in Scheduler chain is marked red.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
