I am using the scheduler but would like to pass the entered values in the scheduler (name, description, etc) to my C# controller, ideally within the kendo code in my view.
Could someone advise how to do this? I need to invoke a C# controller method on creation of an appointment.
1 Answer, 1 is accepted
0
Ivan Danchev
Telerik team
answered on 03 Dec 2019, 04:17 PM
Hi Gurdip,
See the following demo and scroll down to the ASP.NET Core source section, which shows the Scheduler's configuration in the index.cshtml view and how the controller and the service that performs the CRUD operations with the data are implemented.
The Scheduler's DataSource is configured to call different actions when a specific operation is performed:
When editing an existing event or creating a new one the respective actions ("Update" or "Create") in the controller are called and the event data is available through the action's TaskViewModel task parameters:
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.