public ActionResult _AjaxProducts([DataSourceRequest] DataSourceRequest request)
Any ideas why my page uses a GET but the demo uses POST?
.Pageable(pager => pager
.DataSource(dataSource => dataSource
.Read(read => read.Action("_AjaxProducts", "Inventory"))
8 Answers, 1 is accepted
Alternatively in your controller action you can overide the block by using the
And from the Demo projects provided, there is a way to bypass this method (using POST and new Kendo Extensions) . Check the example (Paging - MVC Kendo UI). Where I have been able to get that to work, in that environment, however, since Im trying to port my existing Teletrik.MVC to the Kendo framework, to take advantage of mobile and a singular library, BOTH are included (meaning namespaces Teleric.Web.MVC.UI , and Kendo.Mvc.UI) which may be the issue. I guess I need to wait, (but I usually dont and will try and locate it myself) but Telerik is aware, and we'll see what happens from there.
The Kendo side doesnt expose a property of .Type (atleast not that Im aware of) as a settor... there is a .GetType though. )
Still a challenge,,, how are the 2 coupled that they override each other? I thought they were mutually exclusive, but perhaps not in entirety once combined together for migration.
And then my controller read action as an example:
Commented out was the original method, but I need to consume some dynamic proxies.
I don't know if this is what you want but it certainly allows you to retrieve data using a post method.
There is a .Type for the DataSource MVC Wrapper Bindings using Kendo.
When creating the Grid using the MVC Kendo Server wrappers the .DataSource property configurator can be used to change the default option of GET to Post using the .Type property.
.DataSource(ds => ds
.Read(read => read.Action("_AjaxProducts", "Inventory")
.Type(HttpVerbs.Post ) //Redefine the default "Get" request.
This will change the default Get request to POST.
This is using server - side code generation for the clien (by telerik)t!!!.
Using purely client side AJAX code (generated by the programmer,. which is another option) is also outlined also by Andy with his example for the client side, programmer generated code for the same thing.)
Also out of interest, do you think the server side method you used above is best for performance or the client side example I gave?
I think this may be a little off topic from the original thread. Contact me directly, or create a thread that is about the same thing, (just helps the community search)…. I will absolutely help if I can.
There are about 100 different ways to accomplish a certain task, just depends on what the requirements are, then personal preference. For most of mine I prefer server side for all logic, and requirements (allows me to change whatever and update immediately), let the client side deal with the UI and display functionality, [based on server side abilities ;) ]
Every programmer has their own methods, but we can always learn from each other.
Assist at all? If not, let’s take it to another thread and try and fix the issue… I see the source you included, if I could get a reproducable project, and overall design idea I could help.
I have moved my question to another thread: http://www.kendoui.com/forums/ui/grid/client-side-binding-with-foreign-key-columns.aspx
I looked at those links you sent, the first one seemed to be towards the right direction but I'm guessing its more the server side approach right? This isn't nesscessarily a bad thing and I may be up for moving over to server side but I was struggling to get the code working at all and kept getting errors even when I tried to do Html.Kendo(), I read the thing about MVC.Web but was unable to get this to work.
Please post a reply at the thread above.