robinvanderknaap / MvcJqGrid

Fluent jqGrid Html Helper for ASP.NET MVC
www.playground.webpirates.nl/mvcjqgrid
GNU Lesser General Public License v3.0
101 stars 74 forks source link

Restore GridSettings #24

Closed ansydor closed 11 years ago

ansydor commented 11 years ago

There should be some method to restore GridSettings from some storage. For example, when i store GridSettings in session or other storage, i need a easy way to pass it to grid. Like:

@(Html.Grid("usersGrid").SetGridSettings(...)
daanl commented 11 years ago

If you wany to do this don't use the helper but plain javascript.

We won't add this

robinvanderknaap commented 11 years ago

FYI: There is an option to set default values, see an example here: http://mvcjqgrid.skaele.it/Home/DefaultSearchValue

If you hold the gridsettings in session (or only the search values), you could set these values as default next time the user visits the page.

ansydor commented 11 years ago

I really can and I do, but it's much easy to do in this proposed way, isn't? It's like opportunity to make it easy in one step.

daanl commented 11 years ago

Its not in the way the library is designed, if you want to do this use plain javascript.