|
<ejs-schedule id="schedule" height="550px" currentView="Agenda" selectedDate="new DateTime(2018, 2, 10)" actionBegin="onActionBegin">
<e-schedule-eventsettings dataSource="@Model.Datasource">
</e-schedule-eventsettings>
<e-schedule-resources>
<e-resource dataSource="@Model.ResourceDatasource" field="OwnerId" title="Attendees" name="Conferences" textField="text" idField="id" colorField="color" allowMultiple="true"></e-resource>
</e-schedule-resources>
<e-schedule-views>
<e-view option="Agenda"></e-view>
</e-schedule-views>
</ejs-schedule>
<script>
function onActionBegin(args) {
if (args.requestType === 'toolbarItemRendering') {
var addIcon = {
align: 'Right', prefixIcon: 'e-icon-add', text: 'newEvent',
cssClass: 'e-add', overflow: 'Show'
};
args.items.push(addIcon);
}
}
</script> |
did you get a chance to find example of Schedule CRUD operation in ASP.Core Razor application
Hi Nitin,
We have prepared the below CRUD sample in Core platform for your reference and kindly refer the below KB link.
KB: https://www.syncfusion.com/kb/8488/how-to-perform-crud-operation-on-schedule
Sample: kindly check on the attached sample.
In the sample, modify the connection string based on your database connection. Using the Migrations apply the changes to the database by running the following command in the Package Manager console:
PM> update-database
Migrations automate the creation of database based on our Model. The EF Core packages required for migration will be added with .NET Core project setup.
Now, simply build and run your project to view the output.
Refer the shared sample for your reference.
Please get back to us if you need any further assistance
Regards,
Vijay