How to get value of whole Struts2 grid row in action class
I am using struts2 jquery grid. It has 2 email and sms formatting. He has a choice with two active or inactive parameters. The user can switch from active to inactive and vice versa. So basically I need to store as the value of the columns in the database.
<sjg:gridColumn name="eMail" index="eMail"
title="Mail Alert" editable="true"
sortable="true" formatter="Mail"/>
formatter
function Mail(value, options, rowObject){
var option = {"Inactive": "Inactive","Active":"Active"};
var radioHtml = '<select>';
$.each(option, function(key, val){
radioHtml+='<option value="'+key+'"'+(key==value?' selected="selected"':'')+'>'+val+'</option>';
});
radioHtml+='</select>';
return radioHtml;
}
And the same goes for sms.
Can anyone help me how to do this. Thanks in advance.
+3
source to share
No one has answered this question yet
See similar questions:
or similar: