MVC WebGrid - How to programatically get the current page, sort column etc
问题 How can I programatically (in javascript) get the current page number, last sort column and sort direction of the ASP.NET MVC WebGrid? Is it possible to update the arguments before it calls the $("#grid").load() method? 回答1: The only possible solution was to use jQuery to retrieve: - the "href" attribute from the first column header to get the page number and - the "href" attribute from the "next page number" to get the sort column and sort directions. function reloadGrid(form) { var grid =