How to get select's value in jqGrid when using <select> editoptions on a column
Posted
by destroyer of evil
on Stack Overflow
See other posts from Stack Overflow
or by destroyer of evil
Published on 2010-04-05T21:45:56Z
Indexed on
2010/04/06
13:43 UTC
Read the original article
Hit count: 1680
I have a couple of columns in jqGrid with edittype="select". How can I read the option value of the value currently selected in a particular row?
e.g.: When I provide the following option, how do I get "FE" for FedEx, etc.
editoption: { value: “FE:FedEx; IN:InTime; TN:TNT” }
getRowData() for the rowId/cellname returns only the text/displayed component of the select.
If I set a "change" data event on the column, the underlying fires change events only on mouse clicks, and not keyboard selects (there's numerous references to generic selects and mouse/keyboard issues).
Bottomline, when a new value is selected, I need to know the option value at the time of the change, and also prior to posting to the server.
© Stack Overflow or respective owner