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

3 posts, 0 answers
  1. Iago
    Iago avatar
    13 posts
    Member since:
    Sep 2016

    Posted 29 Mar 2017 Link to this post

    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. Iago
    Iago avatar
    13 posts
    Member since:
    Sep 2016

    Posted 29 Mar 2017 in reply to Iago Link to this post

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

    Regards;

  3. Plamen
    Admin
    Plamen avatar
    2960 posts

    Posted 31 Mar 2017 Link to this post

    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.
Back to Top