java - How to get selected row values in easygrid -
i create custom button "open" in grails easygrid plugin. want parameters in button. how can values selected row?
<grid:grid id='jqgridinitial' name='customerlist' jqgrid.caption="'customer'" open="${g.createlink(controller: 'customer', action: 'index', params:[???] }"
this javascript code return selected row:
var row = jquery("#jqgridinitial_table").jqgrid('getgridparam','selrow');
but, think need custom jqgrid formatter: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter
you can see example here: https://github.com/tudor-malene/easygrid_example/blob/master/grails-app/views/author/_jqgrid.gsp
and here how works ( click on author name , links wikipedia): 199.231.186.169:8080/easygrid/author/list?impl=jqgrid
in case should construct link customer based on actual row data
Comments
Post a Comment