Bind resource from database or web api

6 posts, 0 answers
  1. Abdalla
    Abdalla avatar
    8 posts
    Member since:
    May 2017

    Posted 19 May 2017 Link to this post

    Can you bind the Resource from Database source or Web API in Scheduler UI  in asp.net core? Because I see your examples are you are using hard code value for Room and Attendees?

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    2053 posts

    Posted 23 May 2017 Link to this post

    Hello Abdalla,

    The Scheduler's resources can be bound to kendo.data.DataSource thus the dataSource transport option can be configured to call a controller in order to populate the resources. Here's an example, which demonstrates this. Note how the Attendees resource is configured and how it gets its data by calling the Read_Attendees action in the Home controller.

    Regards,
    Ivan Danchev
    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.
  3. Abdalla
    Abdalla avatar
    8 posts
    Member since:
    May 2017

    Posted 23 May 2017 Link to this post

    thanks for Help 
  4. Abdalla
    Abdalla avatar
    8 posts
    Member since:
    May 2017

    Posted 25 May 2017 Link to this post

    I used the same method in GitHub but I have one problem booking room.  when user select office it will bind Resource "Rooms" for that  office  but when I book room it will book all rooms for same hour  
  5. Abdalla
    Abdalla avatar
    8 posts
    Member since:
    May 2017

    Posted 25 May 2017 Link to this post

    I have used the same method in your GitHub. But I have this bug when I select an office it will bind all rooms in that office when I want to book a room it will book all rooms for that office. I attach simulation of that problem and screen shot 
  6. Ivan Danchev
    Admin
    Ivan Danchev avatar
    2053 posts

    Posted 29 May 2017 Link to this post

    Hello Abdalla,

    The CRUD operations in the example I linked are performed in the SchedulerMeetingService. When you create a new event the Meetings_Create action in the Home controller calls the SchedulerMeetingService Insert method. Since in the example the behavior you are experiencing (multiple events being automatically added) is not reproducible, if you are implementing a similar service I would suggest checking out how the Insert method is implemented in the example and compare it to your method.

    Regards,
    Ivan Danchev
    Progress Telerik
    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