Skip to content

Missing documentation on schedule CRUD #16

@uwefms

Description

@uwefms

At the moment there is no documentation on CRUD operations using the schedule component. I wonder which is the best event to get called from the .razor file. I found ActionComplete as a possible way like:

`@page "/"

@using Syncfusion.EJ2.RazorComponents.Schedule

<EjsSchedule id="schedule" width="100%" height="650px" selectedDate="new DateTime(2019, 1, 10)" EventSettings="@eventSettingsFields" ActionComplete="@OnComplete" > </EjsSchedule>

@functions{

EjsSchedule scheduleObj;

static ScheduleData data = new ScheduleData();

[Parameter]
private object ScheduleData { get; set; } = new
{
	dataSource = data.GetScheduleData()
};


private void OnComplete(ActionEventArgs data)
{
	// check data for db action		
}

    // renaming some fields
[Parameter]
private object eventSettingsFields { get; set; } = new
{
	dataSource = data.GetScheduleData(),
	fields = new
	{
		subject = new { title = "Titel", name = "Subject" },
		location = new { title = "Ort", name = "Location" },
		description = new { title = "Beschreibung", name = "Description" },
		startTime = new { title = "Start Zeit", name = "StartTime" },
		endTime = new { title = "End Zeit", name = "EndTime" }
	}
};

}
`
Are there other ways to get to the changed / deleted data ?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestscheduleSchedule component

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions