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

How can I access values in popup editor in CRUD ops

1 Answer 15 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 15 Sep 2016, 03:00 PM

Hi. In the standard Kendo Datasource usage with a scheduler (partial code), 

dataSource: {
                        batch: true,
                        transport: {
                            read: {
                                url: baseURL + "api/events",
                                dataType: "jsonp",
                                type: "GET",
                                contentType: 'application/json; charset=utf-8'
                            },
                            update: {
                                url: function (options) {
                                    var model = {
                                        taskId: 1,
                                        title: "test title",
                                        start: null,
                                        end: null,
                                        startTimezone: null,
                                        endTimezone: null,
                                        description: null,
                                        recurrenceRule: null,
                                        isAllDay: false
                                    };
I'd like to be able to access the values from the popup editor and throw them in the model. See all the nulls as placeholders above...I know this isn't standard protocol of doing things but...I'm just wondering, can it be done, and how?

1 Answer, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 16 Sep 2016, 03:33 PM
Figured it out. Using the save event.
Tags
Scheduler
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Share this question
or