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

Add additional fields to the Scheduler

3 Answers 659 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Su C
Top achievements
Rank 1
Su C asked on 04 Mar 2016, 06:04 PM

Hi,

I need to add additional fields in the pop up event of the scheduler, this data should be saved in Database eventually. 

 fields: {

                                taskId: { from: "id", type: "number" },
                                title: { from: "title", defaultValue: "No title", validation: { required: true } },
                                start: { type: "date", from: "start" },
                                end: { type: "date", from: "end" },
                                startTimezone: { from: "startTimezone" },
                                endTimezone: { from: "endTimezone" },
                                description: { from: "description" },
                                recurrenceId: { from: "recurrenceId" },
                                recurrenceRule: { from: "recurrenceRule" },
                                recurrenceException: { from: "recurrenceException" },
                               attendees: { from: "attendees", defaultValue: 1 },
                                projects: {from: "projID"},
                                isAllDay: { type: "boolean", from: "isAllDay" }

Attendees, projects are 2 additional fields .

Attendees,projects are not showing up in e of the event when I am trying to save the event. 

3 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 08 Mar 2016, 08:56 AM
Hi Sujatha,

In general, the Scheduler component allows to define custom editor template, which will give you full control over the editor components used in the form:

Also if the additional fields are bind to resources editor for them will be added automatically by the Scheduler.

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Su C
Top achievements
Rank 1
answered on 08 Mar 2016, 05:10 PM

Vladimir, thanks for replying. The extra fields that I added are coming from different datasources, how do I bind them?

Here in your sample you have binded them manually with some data but I want it to bind it to  2 different data which is coming from DB.

 

Thanks,

0
Vladimir Iliev
Telerik team
answered on 10 Mar 2016, 09:49 AM
Hi  Sujatha,

Please note that the resources dataSource option accepts Kendo UI dataSource which can be configured to load data from remote sources. For more information about how to configure it for remote service you can check the following help article:


Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Scheduler
Asked by
Su C
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Su C
Top achievements
Rank 1
Share this question
or