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

Unable to serialize an Observable?

0 Answers 147 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 25 Apr 2012, 08:19 PM
Hello All,
I'm trying to post some simple form data to the server by serializing my model data using JQuerys .param method.  When I call .param using the modal data from a my viewModel (kendo.observable), an error is thrown from the kendo library indicating "this.shouldSerialize is not a function".  After investigating a little further, I seems that the "this" reference is not pointing to the correct context (window instead of the viewModal).  I put together a simplified JSFiddle to demonstrate the problem.  Is this a bug with Kendo?  Does the observable object provide a way to "serialize" itself?  Thanks in advance for any feedback.

Sean

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Sean
Top achievements
Rank 1
Share this question
or