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

Two-way bind does not work if the model is something like record.name

1 Answer 130 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rodrigo
Top achievements
Rank 1
Rodrigo asked on 17 Aug 2014, 01:47 PM
I have a problem with Kendo UI controls

My HTML

 <input type="text" ng-model="record .name" kendo-numeric-text-box />
 <input type="text" ng-model="record .name"> </input>
 <button ng-click="resetRecord()" >test bind</button>


My test.js

$scope.record ={};

$scope.resetRecord= function(){
            $scope.record = {};
        }


Well, just the standard input clear, the kendo ui input does not clear, I've tried $scope.record =null and it does not work either.

if I change to code below, it works, but I need it works like above

$scope.resetRecord= function(){
            $scope.record. name = null;
        }

it happens with all input Kendo UI, not just kendo-numeric-text-box

is it a bug?



1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 20 Aug 2014, 07:19 AM
Hello RODRIGO,

I prepared a simple Dojo demo in my attempt to replicate the issue, but to no avail. Could you modify it to reproduce the erroneous behavior? In order to continue with our investigation we will need to observe the problem locally.

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