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 68 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:10 PM
Hi everyone,

after upgrade from angular-kendo 1.0.1 and kendo v2014.1.416 to the new all in one kendo v2014.2.716 the selected value is not passed anymore to the underlying property using ng-model. After changed ng-model by using k-ng-model (that holds the typed value) form $dirty and friends not firing.

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"
                                            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:12 AM
Hello,

This has been answered in ticket 843014 (duplicate).

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