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

Edit event - doesn't save correctly

1 Answer 70 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Joanna
Top achievements
Rank 1
Iron
Joanna asked on 02 Nov 2015, 10:27 AM

On event edit window:

<select kendo-drop-down-list ng-model="data.AbsenceTypeId" k-options="absenceList" class="form-control" />

...

<button class="save-button btn btn-default" ng-click="save(this)">Save</button>

 

Data to list is binding:

$scope.absenceList = {
    dataSource: {
        transport: {
            read: {
                url: 'api/absences',
                dataType: "json"
            }
        }
    },
    dataValueField: "Id",
    dataTextField: 'Name',
    optionLabel: {
        Id: "",
        Name: ""
    }
}

 

 And save event:

$scope.save = function (e) {
   ...
};

 

When I open event and next clik "save" (don't change anything) sometimes in "e.data.AbsenceTypeId" is null sometimes right value. I don't see the rules. Any ideas?

I use Angular.

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 04 Nov 2015, 09:05 AM
Hi Joanna,

Could you please provide runable example where the issue is reproduced? This would help us get better overview of the exact setup that you have and advice you better how to proceed. 

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
Joanna
Top achievements
Rank 1
Iron
Answers by
Vladimir Iliev
Telerik team
Share this question
or