Scheduler add or edit event (extra Fields)

9 posts, 0 answers
  1. santhosh
    santhosh avatar
    10 posts
    Member since:
    Aug 2013

    Posted 21 Sep 2013 Link to this post

    Dear sir,
                  is it possible to add some extra field to scheduler which i need to inserted in the database 

    i.e 
    taskId
    title
    start
    end
    startTimezone
    endTimezone
    description
    recurrenceId
    recurrenceRule
    recurrenceException
    ownerId
    isAllDay

    other than above fields

    i need to insert 

    Attendies,
    Type,
    Deadline/Duration,
    Priority,
    Label As

    etc


    is it possible to insert it to database via scheduler  and  as well as i need to edit those fields in scheduler 
    and how to insert those datas and save to DB and how to edit those datas
    please give me the sample for above thread

    thanks & regards
    -santhosh
  2. Entilzha
    Entilzha avatar
    36 posts
    Member since:
    Feb 2012

    Posted 21 Sep 2013 Link to this post

    I am new to the scheduler as well but I am pretty sure all you need to do is add those fields to the "schema" definition.  If any of your new fields are of type type: "date" or type: "boolean" then add that, too.  If you define those fields in the schema and populate the fields in your javascript code then the values should be sent back to the server for you.  Again, I am new to this so I would hope someone will correct me if I am wrong.  But there doesn't seem to be a lot of people around this weekend so I thought I would at least try to point you in the direction that might help you.
    schema: {
        model: {
            id: "taskId", // The "id" of the event is the "taskId" field
            fields: {
                taskId: {from: "TaskID",  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" },
                ownerId: { from: "OwnerID", defaultValue: 1 },
                isAllDay: { type: "boolean", from: "IsAllDay" },
                attendies: { from: "Attendies" },
                type: { from: "Type" },
                deadline: { from: "Deadline" },
                priority: { from: "Priority" },
                labelAs: { from: "LabelAs" }
            }
        }

  3. Kendo UI is VS 2017 Ready
  4. santhosh
    santhosh avatar
    10 posts
    Member since:
    Aug 2013

    Posted 22 Sep 2013 Link to this post

    dear Entilza,

                        thanks for your reply

    and i'd already add the schema fields but in the pop up window i.e in new or in edit

    how to add above fields  in pop up window and how to save to my DB

    and i'v another 2 doubts
    1) is it possible to add the task in separate div 
    i.e the scheduler will hide and the new div will show instead of popup

    2) and how to add the task and edit those task in that separate div if we chick the scheduler instead of popup window 


    any one please clarify my doubt 



    thanks & regards
    -santhosh
  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 24 Sep 2013 Link to this post

    Hi Santhosh,


    Basically Entilza suggestion is correct - you should add these field to the schema, however in order to edit these fields you should implement custom editor template (you can check this example of defining custom editor template). 

    Also about your last questions for editing fields outside the PopUp editor -  currently this functionality is not supported out of the box and you should implement custom solution.

    Regards,
    Vladimir Iliev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. gunnisen
    gunnisen avatar
    25 posts
    Member since:
    Oct 2006

    Posted 27 Sep 2013 Link to this post

    Hello!

    I'm looking for the same kind of funcionality (adding extra fields). The problem with the "editor template solution" for us is that we want to keep e.g. the recurring event functionality, and we are simply unable to recreate that kind of complex UI in a custom template...

    Wouldn't it be possible to somehow add fields to the default editor? That would be the ideal solution... if we could just EXTEND the editor with custom fields, rather than having to replace the whole thing with our own template.

    Best regards,
      Gunnar

  7. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 30 Sep 2013 Link to this post

    Hi Gunnar,

     
    For convenience I created small example of creating scheduler editor template that contains the KendoUI "recurrence" editor:


    Kind Regards,
    Vladimir Iliev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  8. gunnisen
    gunnisen avatar
    25 posts
    Member since:
    Oct 2006

    Posted 01 Oct 2013 Link to this post


    Thanks, Vladimir! That could be a good starting point for us.

    Best regards,
      Gunnar

  9. Justine
    Justine avatar
    1 posts
    Member since:
    Feb 2014

    Posted 08 Apr 2014 in reply to Vladimir Iliev Link to this post

    Vladimir,  can you please repost the jsbin,  I get a 404 error when trying to view the code.  Thank you!
  10. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 10 Apr 2014 Link to this post

    Hi Justine,

    Both jsBin demos linked in current thread are currently accessible from us - could you please try to access the links again as the error may be related to jsBin servers glitch?

    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