6 Answers, 1 is accepted
Please check the following example: http://dojo.telerik.com/AnipI
I hope this information will help.
This is great! However, I am working with a complex JSON. I am bounding this complex JSON to a property inside my observable viewmodel. I am a little confused on how to reference the array i intend on being sortable within the onChange function. I have posted below some of viewmodel:
Here is a preview of basically how the JSON file looks like:
Thanks for all the help!
The ViewModel is part of the 'app' namespace. You may access it in the following way:
I'm able to dial into the viewModel...however, I keep getting "Uncaught TypeError: Cannot read property 'splice' of undefined"
here is my code inside the viewModel for the onChange event:
I was able to update my code so that when a user sorts a row in my code, the data is correctly updated. I'm logging the changes to my console and can see everything showing up correctly. However, there seems to be a binding issue where the data in the html is not displaying correctly. Below is my updated code: