Scheduler reading wrong config file

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

    Posted 23 Mar 2016 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? 


        .Date(new DateTime(2016, 6, 13))
        .StartTime(new DateTime(2013, 6, 13, 7, 00, 00))
        .DataSource(d => d
        .Model(m =>
            m.Id(f => f.StoreID);
            m.Field(f => f.Title).DefaultValue("Hello There"); 
        .Read(read => read.Action("Read", "Home").Data("getAdditionalData"))
        .Views(views =>
            views.MonthView(monthView => monthView.Selected(true));

  2. Nencho
    Nencho avatar
    1643 posts

    Posted 25 Mar 2016 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:

    Hope this would help.

    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. Ai
    Ai avatar
    2 posts
    Member since:
    Mar 2016

    Posted 25 Mar 2016 in reply to Nencho Link to this post

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