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

Can I customize the appointment details?

1 Answer 93 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Pablo
Top achievements
Rank 1
Pablo asked on 13 Feb 2019, 04:35 PM

I have a request to add and remove some fields in the appointment details. Can I do that? How can I achieve this? I'm attaching a print screen of what I'm trying to customize.

Thank you.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 18 Feb 2019, 06:41 AM
Hello Pablo,

If you would like to customize the create and edit popup window of the Scheduler, this could be achieved through the Editable.TeplateName property that allows specifying a template:
@(Html.Kendo().Scheduler<SchedulerCustomEditor.Models.MeetingViewModel>()
  ...
  .Editable(editable => {
    editable.TemplateName("CustomEditorTemplate");
  })
)

Then, create a view with the specified name (CustomEditorTemplate) and define the required markup. The template automatically receives the respective model data, thus allowing you to bind the fields. Important to note is that the data_bind attribute is required to be used to apply the value binding, as the Scheduler uses MVVM internally to update the data in the views:
<div class="k-edit-label">
    @(Html.LabelFor(model => model.Title))
</div>
<div data-container-for="title" class="k-edit-field">
    @(Html.TextBoxFor(model => model.Title, new { @class = "k-textbox", data_bind = "value:title" }))
</div>


There is an existing example for ASP.NET MVC that demonstrates how the custom template could be configured for the initial fields. You could use this as a startup point to configure the same behavior in the ASP.NET Core project. In order to add new data to the template, make sure that the property is available in the Scheduler model and is also defined in the DataSource Schema.

Regards,
Dimitar
Progress Telerik
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.
Tags
Scheduler
Asked by
Pablo
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or