Hello, I'm trying to bind an array of primitive objects to an un-ordered list using the example from the getting started documentation here:
http://docs.telerik.com/kendo-ui/getting-started/framework/mvvm/bindings/source#source-binding-to-array-of-primitive-objects
I'd like to add a button along side each list item that, when clicked, removes the item from the list.
When I run the example above without the addition of a click event handler, everything works fine as the below link shows:
http://jsbin.com/muzameko/3/edit
However, when I add a click event handler to the same span, or even a neighboring span element as below...
http://jsbin.com/muzameko/4/edit
I get the following error in Chrome's console:
Uncaught TypeError: Object Coffee has no method 'get'
and the rest of the list fails to render correctly. Is this a bug or am I binding in an unusual way?
Thanks in advance, Sam.
http://docs.telerik.com/kendo-ui/getting-started/framework/mvvm/bindings/source#source-binding-to-array-of-primitive-objects
I'd like to add a button along side each list item that, when clicked, removes the item from the list.
When I run the example above without the addition of a click event handler, everything works fine as the below link shows:
http://jsbin.com/muzameko/3/edit
However, when I add a click event handler to the same span, or even a neighboring span element as below...
http://jsbin.com/muzameko/4/edit
I get the following error in Chrome's console:
Uncaught TypeError: Object Coffee has no method 'get'
and the rest of the list fails to render correctly. Is this a bug or am I binding in an unusual way?
Thanks in advance, Sam.