My app is pretty straight-forward: It's a kendo pageable grid, with a search form above it which refines the data displayed in the grid each time the search button is clicked based on the criteria specified in the form fields. Here are my current issues I could use some help with:
- I have a primary action method I use to get my IEnumerable collection for the grid, which takes the DataSourceRequest as a parameter, as instructed in the docs. This method returns a JsonResult. If I call this method in my Index action, I get this error: "This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet." If I change the method to allow Get, I get a page full of json text instead of the grid.
- If I instead put the collection into the Index action and call the View, it works fine, but if I do a search, or any kind of paging the grid resets to the full colection every time.
- I have some code that toggles the css class on $(document).ready(). It works great, but as soon as I go to the next page it's broken. How do I get this to work through all the paging, filtering, grouping, etc.?
Here's my code, and thanks so much for the help!
Thanks again for your help!