Scheduler reading wrong config file

3 posts, 0 answers
  1. Ai
    Ai avatar
    2 posts
    Member since:
    Mar 2016

    Posted 23 Mar Link to this post

    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 webconfig (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. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 25 Mar Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Ai
    Ai avatar
    2 posts
    Member since:
    Mar 2016

    Posted 25 Mar in reply to Nencho Link to this post

    Thank you, but we resolved this on Thursday. 
Back to Top