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

Editoptions maxlength not correctly rendered #40

Closed julianonunes closed 9 years ago

julianonunes commented 10 years ago

I'm trying to use EditOptions to add a maxlength attribute to an input type="text" with the following code:

.AddColumn(new Column("Ordenacao") .SetLabel("Ordem") .SetSortable(true) .SetEditOptions(new EditOptions() { OtherOptions = "maxlength: 5"}) .SetWidth(30) .SetEditable(true))

However, this is rendered like this:

Is this a bug or a mistake in my code?