jQuery jqGrid cannot get custom formatter radio buttons value
I've created a custom formatter to render a pair of radio buttons for a bool field in jqGrid using the radioButtonFormatter function below.
Also have radio button markup in the myelem function below which is the editoptions:custom_element call to retain the formatting when user clicks in the cell (but not directly on a radio button).
This much works, but if user then clicks out of the cell, the myvalue function which is wired to editoptions:custom_value does not return the value, in fact the 'value' parameter being passed in with 'elem' and 'operation' is empty if I alert it out... So we end up having values reset to 0,no when they should'nt be.
Cannot figure out why the value is not available in the myvalue function.
would it be possible for you to create a small sample page at .e.g Plnkr.co or Codepen.io?
Having a working sample would really help. If this is not possible, please post the complete page source as well as required data (e.g. JSON array ...).
would it be possible for you to create a small sample page at .e.g Plnkr.co or Codepen.io?
Having a working sample would really help. If this is not possible, please post the complete page source as well as required data (e.g. JSON array ...).
Thanks.
Rainer