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

Update src/MvcJqGrid.net40/Grid.cs to allow the adding of a list of colu... #8

Closed PieterHartzer closed 12 years ago

PieterHartzer commented 12 years ago

...mns at once, ie.

// In .cs MyViewModel.Columns = new List { new Column("CustomerId").SetLabel("Id"), new Column("Name"), new Column("Company"), new Column("EmailAddress"), new Column("Last Modified"), new Column("Telephone") };

@* In view *@ Html.Grid("Basic").AddColumns(Model.Columns)

daanl commented 12 years ago

Please add tests and for .net 3.5 also this change.

robinvanderknaap commented 12 years ago

Nice addition. If you could update the 3.5 project and add a test like Daan asked we can pull it into the repo. I will update the nuget package asap.

PieterHartzer commented 12 years ago

I will try and get it done today.

robinvanderknaap commented 12 years ago

Thanx Pieter, I will update the nuget package.

daanl commented 12 years ago

Thanks Pieter great feature!