obscure jqGrid API notes

May 6, 2010

If you are using an older version of jqGrid because it comes nicely wrapped up in the jquery-grid-rails-plugin, keep in mind that all the demo code is written with the new API introduced in version 3.6. Fortunately, most of the demo code can still be reused with our version of jqGrid (3.5). Just get rid of any “jqGrid(’ ****** ‘)” function wrappers, and everything should work fine. (I find this easier to do than rewriting the rails plugin for the new version)

For example:

var ids = jQuery("#rowed2").jqGrid('getDataIDs');

becomes:

var ids = jQuery("#rowed2").getDataIDs();