tonytomov/jqGrid — Issue #190: colModel.formatter function should be allowed to return DOM/jQuery objects
Author: nurkiewicz
Created: 2011-10-13 11:59:08+00:00
State: open

Currently custom formatters (http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter) can only return raw HTML. It would be nice if jqGrid could also recognize DOM and jQuery objects:

return $('')[0]

or even:

return $('')

When returning raw HTML, events attached to elements are lost. If this improvement is accepted maybe the function should be called render() to better reflect its capabilities?