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

angularjs $dirty not firing when using kendo-drop-down-list

1 Answer 174 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Enrico
Top achievements
Rank 1
Enrico asked on 24 Jul 2014, 07:04 PM
After upgrade from kendo v2014.1.416 and angular-kendo to the all in one kendo v2014.2.716 ng-model is not passed to the FK value anymore and need to use k-ng-model, and also $dirty is not firing properly.

ex:

<form name="modelForm" ng-submit="save(model)" novalidate>
...
 <select kendo-drop-down-list
               k-data-text-field="'DisplayName'"
               k-data-value-field="'Id'"
               k-data-source="roles"
               k-ng-model="model.SupplierContactRoleId"
               name="SupplierContactRoleId"></select>
...
<button type="submit" class="btn green" ng-disabled="modelForm.$invalid || modelForm.$pristine"><i class="icon-ok"></i> Save</button>
...
</form>

1 Answer, 1 is accepted

Sort by
0
Mihai
Telerik team
answered on 25 Jul 2014, 08:19 AM
Hi,

This is a duplicate of http://www.telerik.com/forums/angularjs-$dirty-not-firing-when-using-kendo-drop-down-list-76e9d33829cf and http://www.telerik.com/forums/angularjs-$dirty-not-firing-when-using-kendo-drop-down-list-2864ee48c464

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