|
<SfSchedule TValue="RoomData" Width="100%" Height="650px" SelectedDate="@(new DateTime(2020, 1, 1))" CurrentView="View.TimelineWeek">
...
<ScheduleEventSettings DataSource="@DataSource">
<ScheduleField>
<FieldSubject Title="Travel Summary" Name="Subject" Default="seated value"></FieldSubject> // To set value the subject field
<FieldLocation Title="Source" Name="Location"></FieldLocation>
<FieldDescription Title="Comments" Name="Description"></FieldDescription>
<FieldStartTime Title="Departure Time" Name="StartTime"></FieldStartTime>
<FieldEndTime Title="Arrival Time" Name="EndTime"></FieldEndTime>
</ScheduleField>
</ScheduleEventSettings>
</SfSchedule> |
Dear customer,
Greetings from Syncfusion support.
We have validated your reported case “how to set value to the property in default edit dialog” and you can customize the Scheduler fields value using Default property to achieve this case. Refer the below code for that.
<SfSchedule TValue="RoomData" Width="100%" Height="650px" SelectedDate="@(new DateTime(2020, 1, 1))" CurrentView="View.TimelineWeek">...<ScheduleEventSettings DataSource="@DataSource"><ScheduleField><FieldSubject Title="Travel Summary" Name="Subject" Default="seated value"></FieldSubject> // To set value the subject field<FieldLocation Title="Source" Name="Location"></FieldLocation><FieldDescription Title="Comments" Name="Description"></FieldDescription><FieldStartTime Title="Departure Time" Name="StartTime"></FieldStartTime><FieldEndTime Title="Arrival Time" Name="EndTime"></FieldEndTime></ScheduleField></ScheduleEventSettings></SfSchedule>
The above sample can be downloaded from the following link
Also, currently we are facing issue with default value customization and you can track the issue status by the below mentioned feedback link.Feedback Link: https://www.syncfusion.com/feedback/15741/specified-default-value-not-shown-in-editor-window
The fix for this will be available in our patch release which is expected to be Scheduled on 2nd week of July, 2020.
RegardsAlagumeena.K
Dear Customer,
We are glad to announce that our latest weekly release in
the version 18.2.0.45 has been rolled out successfully. In that release, we
have fixed the reported issue. So, we
suggest you upgrade our Syncfusion packages to avail of the fix in your end.
Please find the links below.
NuGet Link: https://www.nuget.org/packages/Syncfusion.Blazor/18.2.0.45
Release notes: https://blazor.syncfusion.com/documentation/release-notes/18.2.45/#scheduler
Feedback: https://www.syncfusion.com/feedback/15741/specified-default-value-not-shown-in-editor-window
Kindly get back to us if you need any further assistance.
Regards,
Vengatesh