JqGridColumnEditableAttribute HtmlAttributes

Mar 7, 2012 at 10:38 PM

I'm trying to set the size attribute for a field in the edit form dialog.  I thought I could use the HtmlAttributes property from the JqGridColumnEditableAttribute class.  However, it doesn't seem to be working.  The documentation starts off the descrption by saying "When overriden in delivered class ..." which seems to imply that in order to use this property we need to write our own attribute class inheriting JqGridColumnEditableAttribute.

What am I missing or misunderstanding?

Thanks.
Karl.

Coordinator
Mar 8, 2012 at 7:35 AM

Hi Karl,

Your interpretation of documentation is correct. Attributes can't take such types as parameters, so you need to create your own attribute. You can find some samples regarding DataEvents (which work in same way) here: http://tpeczek.codeplex.com/discussions/286543.

Mar 9, 2012 at 12:28 PM

Thanks Tomasz.  Like everything else about Lib.Web.Mvc, works great!

Thanks.
Karl