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

Bind resource from database or web api

5 Answers 220 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Abdalla
Top achievements
Rank 1
Abdalla asked on 20 May 2017, 03:33 AM

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?

5 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 23 May 2017, 03:29 PM
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.
0
Abdalla
Top achievements
Rank 1
answered on 23 May 2017, 03:34 PM
thanks for Help 
0
Abdalla
Top achievements
Rank 1
answered on 25 May 2017, 06:32 PM
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 it will book all rooms for hour  
0
Abdalla
Top achievements
Rank 1
answered on 25 May 2017, 06:40 PM
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 
0
Ivan Danchev
Telerik team
answered on 29 May 2017, 11:18 AM
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.
Tags
Scheduler
Asked by
Abdalla
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Abdalla
Top achievements
Rank 1
Share this question
or