This question is locked. New answers and comments are not allowed.
Hi there,
I'm currently trying to use a grid in the following scenario: I have a grid which is configured for server side binding in a partial view. I have a controller action which returns this partial view and the grid is configured to bind to this action. Everything works however when I try to page through the grid the anchors for the paging change the URL of the entire page, is there a way to have these automatically just replace the grid in a more ajax-like fashion whilst still being able to use server-side binding?
I have managed to work around the problem with some simple jQuery (below), I was just curious if this is possible "natively" or if it's a feature that could possibly be added in the future?
Thanks!
--jQuery Code--
I'm currently trying to use a grid in the following scenario: I have a grid which is configured for server side binding in a partial view. I have a controller action which returns this partial view and the grid is configured to bind to this action. Everything works however when I try to page through the grid the anchors for the paging change the URL of the entire page, is there a way to have these automatically just replace the grid in a more ajax-like fashion whilst still being able to use server-side binding?
I have managed to work around the problem with some simple jQuery (below), I was just curious if this is possible "natively" or if it's a feature that could possibly be added in the future?
Thanks!
--jQuery Code--
$("a.t-link").add("a.t-refresh").click(function (event) { event.preventDefault(); var href = $(this).attr("href"); $.get(href, function (data) { $("#MyGrid").replaceWith(data); }); });