Jquery inline edit in jqgrid does not submit the data on press of Enter key if the control is on some text area -
i using inline edit of jqgrid using enter key. problem enter key works fine if control on textbox. if user entering data in text area (my edit options include text area ) , presses enter, taken carriage return instead of enter key , not submits row.
how submit edt row in inline edit on press of enter button text area fields.
finally ws able submit row using dataevent feature.
dataevents: [{ type: 'keydown', fn: submitrowdata} ] var submitrowdata = function(e) { var key = e.charcode || e.keycode; if (key == 13)//enter { jquery('#grid1').jqgrid('saverow',globalselid,true,null, successmsghandler,null,null,null,saveerrhandler); } }
Comments
Post a Comment