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

Scheduler reading wrong config file

2 Answers 42 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ai
Top achievements
Rank 1
Ai asked on 23 Mar 2016, 07:39 PM

We are trying to implement the Telerik Scheduler and we have been able to populate the radScheduler calendar with data when passed through the view, but we want to filter our results based on the range that is displayed on the calendar. We saw that we could do this with the .read method, but when we try and populate the calendar with the database connection, the Html helper reads the front end web configuration instead of the back end  (web configuration file). Are there ways to fix this? 

@(Html.Kendo().Scheduler<ExtendedStoreInformationDTO>()

    .Name("scheduler")
    .Date(new DateTime(2016, 6, 13))
    .StartTime(new DateTime(2013, 6, 13, 7, 00, 00))
    .Height(600)
    .DataSource(d => d
    .Model(m =>
    {
        m.Id(f => f.StoreID);
        m.Field(f => f.Title).DefaultValue("Hello There"); 
    })
    .ServerOperation(true)
    .Read(read => read.Action("Read", "Home").Data("getAdditionalData"))
    )
    .Views(views =>
    {
        views.DayView();
        views.WorkWeekView();
        views.WeekView();
        views.MonthView(monthView => monthView.Selected(true));
        views.AgendaView();
        views.TimelineView();
    })
    .Timezone("Etc/UTC")
    .WorkDayStart(1,0,0))

2 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 25 Mar 2016, 10:00 AM
Hello Ai Le,

In order to achieve the proper server filtering, you would need to pass the needed range to the Read method of the DataSource, in order to request the underlying data in the specified range.

In the following code library you can observe this implementation and test its behavior:

http://www.telerik.com/support/code-library/server-filtering

Hope this would help.

Regards,
Nencho
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Ai
Top achievements
Rank 1
answered on 25 Mar 2016, 02:29 PM
Thank you, but we resolved this on Thursday. 
Tags
Scheduler
Asked by
Ai
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Ai
Top achievements
Rank 1
Share this question
or