Add additional fields to the Scheduler

4 posts, 0 answers
  1. Su C
    Su C avatar
    3 posts
    Member since:
    Feb 2016

    Posted 04 Mar Link to this post

    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. 

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 08 Mar Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Su C
    Su C avatar
    3 posts
    Member since:
    Feb 2016

    Posted 08 Mar in reply to Vladimir Iliev Link to this post

    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,

  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 10 Mar Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready