free-jqgrid / jqGrid

jQuery grid plugin
https://github.com/free-jqgrid/jqGrid
Other
480 stars 195 forks source link

Custom action #473

Closed davgino closed 5 years ago

davgino commented 5 years ago

It looks like the latest version, custom action does not work. Link http://www.ok-soft-gmbh.com/jqGrid/OK/CustomActionButton1.htm

antoineluong commented 5 years ago

What exactly does not work? Version 4.15.5 seems functional to me: https://jsfiddle.net/s5qc2Lh6/

davgino commented 5 years ago

Function isDisplayButtons which show custom button, not work.

antoineluong commented 5 years ago

The first parameter passed to the isDisplayButtons callback changed with 13c3931c05198f621dda8d28fb640ed3aaf0cad0. Using rowData instead of options.rowData fixes the issue: https://jsfiddle.net/et324ywq/