After read this post of a custom implementation of DataEvents on Lib.Web.Mvc. I need to create a column of type ListBox, something like
[Required]
[Display(Name = "Actions")]
[JqGridColumnEditable(true, "Actions", "Home", EditType = JqGridColumnEditTypes.Select)]
[JqGridColumnEditOptions.Multiple=true]
public string Actions { get; set; }
Can anyone help me or give me a reference. I really do not know how to do this.
You can subclass
JqGridColumnEditableAttribute
and addMultiple
property throughHtmlAttributes
collection:You can use attribute created in this way like this:
This will cause jqGrid to render ListBox (you might need to do some styling to make it look good).