This question is locked. New answers and comments are not allowed.
Hello,
I am using the ASP.NET MVC Grid in an app that has been working pretty well. I have a slight problem. I am using a Juniper SSL VPN (DANA) and it is mangling my Grid posts, to (as far as I can tell), get passed to the application as HTTP GET's, or otherwise screwing up the ajax call.
I can create a view called _AjaxBinding.cshtml in my shared directory, and it will spit it back out (using firebug/fiddler to look at the response). I can also furthermore look at Request.Forms and see that my page, size, filter args are all going through.
So. It seems like all I have to do is correctly format the GridView to JSON, and everything will work. I am currently using something like:
@model Telerik.Web.Mvc.GridModel
@{Layout = null;}
@Html.Raw(Json.Encode(Model))
How can I use skip/take on Model.Data to properly shrink my output? Also, something doesn't quite jive.
I understand that this is a little out of the ordinary, but all signs point to this working, if I can get my JSON to look identical to what is spit out when you Return View(new GridModel(whatever))
Thanks!
I am using the ASP.NET MVC Grid in an app that has been working pretty well. I have a slight problem. I am using a Juniper SSL VPN (DANA) and it is mangling my Grid posts, to (as far as I can tell), get passed to the application as HTTP GET's, or otherwise screwing up the ajax call.
I can create a view called _AjaxBinding.cshtml in my shared directory, and it will spit it back out (using firebug/fiddler to look at the response). I can also furthermore look at Request.Forms and see that my page, size, filter args are all going through.
So. It seems like all I have to do is correctly format the GridView to JSON, and everything will work. I am currently using something like:
@model Telerik.Web.Mvc.GridModel
@{Layout = null;}
@Html.Raw(Json.Encode(Model))
How can I use skip/take on Model.Data to properly shrink my output? Also, something doesn't quite jive.
I understand that this is a little out of the ordinary, but all signs point to this working, if I can get my JSON to look identical to what is spit out when you Return View(new GridModel(whatever))
Thanks!