This is a migrated thread and some comments may be shown as answers.

Can be set in a Fluent API Scheduler a Shared DataSource Like in a Grid .DataSource(string Name)???

2 Answers 71 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Iago
Top achievements
Rank 1
Iago asked on 29 Mar 2017, 10:57 AM

Hi; 

It's possible to set a Shared DataSource lto a Fluent API Scheduler, like to a Grid, via DataSource Name?

Example:

DataSource:

@(Html.Kendo().DataSource<Models.Event>()
        .Name("SharedEvents")
         
        .SignalR(sr => sr
         
        .Transport(tr => tr
            .Promise("hubStart")
            .Hub("OpsToolHub")
            .Client(c => c
                .Read("read")
                .Create("create")
                .Update("update")
                .Destroy("destroy"))
            .Server(s => s
                .Read("read")
                .Create("create")
                .Update("update")
                .Destroy("destroy")))
        .Schema(schema => schema
 
            .Model(model => {
                model.Id(m => m.id);
                model.Field(m => m.fID).Editable(false);
                model.Field("start", typeof (DateTime)).From("Start");
                model.Field("end", typeof (DateTime)).From("End");
                model.Field("title", typeof (string)).From("Title");
                model.Field("description", typeof (string)).From("Description").Editable(true);
                model.Field("recurrenceRule", typeof (string)).From("RecurrenceRule");
                model.Field("recurrenceException", typeof (string)).From("RecurrenceException");
                model.Field("isAllDay", typeof (bool)).From("IsAllDay").Editable(true);
                model.Field("startTimezone", typeof (string)).From("StartTimezone").Editable(true);
                model.Field("endTimezone", typeof (string)).From("EndTimezone").Editable(true);
            })
        )
    )
)

 

Scheduler:

01.@(Html.Kendo().Scheduler<Models.Event>()
02.    .Name("schedulerWeek")
03.    .Date(DateTime.Now)
04.    .StartTime(new DateTime(2017, 1, 1, 1, 00, 00))
05.    .Height(1000)
06.    .AllDaySlot(false)
07.    .Timezone("Etc/UTC")
08.    .MajorTick(1440)     
09.    .MinorTickCount(1)   
10.    .CurrentTimeMarker(marker =>
11.    {
12.        marker.UpdateInterval(600000); //updates each 10min.
13.        marker.UseLocalTimezone(false);
14.    })
15.    .Views(views =>
16.    {  
17.        views.CustomView("kendo.ui.SchedulerTimelineWeekView", t =>
18.        {   t.Title("schedulerWeek");           
19.        });       
20.    })
21.    .Resources(resource =>
22.    {
23.        resource.Add(m => m.type)
24.       (...) //shorttened
25.    .Group(group => group.Resources("RegisterName", "type").Orientation(SchedulerGroupOrientation.Vertical))
26.    .EventTemplateId("event-template")
27.    .DataSource(????)  '???? how to set the shared datasource, imposible via name as far as we try!!!

 

Waiting for response;

Best Regards;

2 Answers, 1 is accepted

Sort by
0
Iago
Top achievements
Rank 1
answered on 29 Mar 2017, 11:14 AM

Please, take in note, that we are using SignalR as remote service.

Regards;

0
Plamen
Telerik team
answered on 31 Mar 2017, 05:01 AM
Hello,

Unfortunately the desired behavior is not supported with kendo Scheduler because it is using SchedulerDataSource that unfortunately is not exposed as stand alone wrapper. You can submit the issue as feature request in our UserVoice portal here.

Regards,
Plamen
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Scheduler
Asked by
Iago
Top achievements
Rank 1
Answers by
Iago
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or