Completed
Last Updated: 27 Feb 2015 21:27 by ADMIN
Sam
Created on: 26 Apr 2012 07:04
Category: Kendo UI for jQuery
Type: Feature Request
2
Fix Grid docs
In your Grid docs here:  http://www.kendoui.com/documentation/framework/datasource/configuration.aspx

The section on 'update:' doesn't actually show 'update:".  It shows 'read:'

The Grid docs also do not have a good example of where the data for an 'update' comes from.  For example I'm using Rails with MongoDB and I am currently getting an error b/c it says by JSON sent to the server is ill formed.  

"Started PUT "/users/4f98846bd51d1d3903000001" for 127.0.0.1 at 2012-04-25 23:51:30 -0500
Error occurred while parsing request parameters.
Contents:



MultiJson::DecodeError (lexical error: invalid char in json text.
                                       _id=4f98846bd51d1d3903000001&em
                     (right here) ------^
):
"

but with the examples I have no way of figuring out what is the cause on the client side.  It's not fleshed out enough for me to know the right way to fix it and where in all the settings I can do how to fix my JSON.  Which by the way from all I read, the issue is that the params are not compliant with the JSON spec.  They are getting sent down as args, but not JSON args.  Just a string that isn't nested in the proper brackets. "{ ..... }" I assume.

Anyway, that was an example of the kinds of things that the docs need more info on.  Why is the edit data that I am pushiing in the 'update' going as a string that isn't valid JSON even though I specified it is supposed to be JSON, and what way do I intercept it and wrap it to be conformant?

3 comments
ADMIN
Brandon
Posted on: 11 Jul 2012 21:11
Hi Sam,

We launched our new docs site, docs.kendoui.com this morning, and I hope you find that better suits your needs.
Sam
Posted on: 26 Apr 2012 07:06
By the way the post formated the code I pasted, so here's a try again.

<code>
Started PUT "/users/4f98846bd51d1d3903000001" for 127.0.0.1 at 2012-04-25 23:51:30 -0500
Error occurred while parsing request parameters.
Contents:



MultiJson::DecodeError (lexical error: invalid char in json text.
                                       _id=4f98846bd51d1d3903000001&em
                     (right here) ------^
):

</code>
Sam
Posted on: 26 Apr 2012 07:06
Didn't work pasting it inside of <code> tags.  Anyway, the arrow points right between the '_" and the "i" in _id.