ASP.NET MVC3 Razor - Maintain scroll position on postback -


How can I maintain a scrolling position on postback after sorting a grid table that is used by the MVC contribb framework Does it?

To set the current scroll state in the hidden field, use some javascript, then the page Restore that position on the load (usually a jquery ready event)

However, this is actually just a side effect, instead of postback, you should command some type of ajax to update the grid, No scrolling is necessary again.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -