Scheduler stay empty

2 posts, 0 answers
  1. David
    David avatar
    8 posts
    Member since:
    Nov 2010

    Posted 17 Dec 2014 Link to this post


    In my app, I have a scheduler that I try to fill using  the DataSource.Read but it stay empty.
    I verified the data arrives to the client but it seems not to be understand by the control.
    Here's a bit of code:

        .Date(new DateTime(2014, 12, 12))
        .StartTime(new DateTime(2014, 12, 8, 9, 00, 00))
        .EndTime(new DateTime(2014, 12, 5, 14, 00, 0))
        .Views(views =>
                .Resources(resource =>
                      resource.Add(m => m.LessonType).Title("Lesson Type").DataTextField("Text").DataValueField("Value").DataColorField("Color").BindTo(new[]{
                      new { Text = "Group1", Value=1, Color="#DC8166"},
                      new { Text = "Group2", Value=2, Color="#889DAE"},
                      new { Text = "Group3", Value=3, Color="#91DE80"},
                      new { Text = "Group4", Value=4, Color="#FFD24D"}
            .DataSource(d => d
                    .Model(m =>
                        m.Id(f => f.Id);
                        m.Field(f => f.Title).DefaultValue("No title");
                    .Read(read => read.Action("Read_Scheduler", "Administration").Data("getDates"))

    I already use a scheduler on another page but using the BindTo method which work just fine.
    Here I need to call server to update the scheduler when the user change displayed the week.

    What do I miss ?


  2. Georgi Krustev
    Georgi Krustev avatar
    3747 posts

    Posted 19 Dec 2014 Link to this post

    Hello David,

    I answered to the support thread opened on the same subject. I would like to ask you continue our discussion there to avoid any duplication. Thank you for your understanding.

    Here is a quote of the answer:

    The setup of the widget looks correct. I would suggest you wire the error event of the DataSource and verify that there are no exceptions. If the problem still persists then I will ask you send us more details about your current implementation. A runnable test project will be of a great help to narrow the problem down much faster and advice you further.

    Georgi Krustev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top