I am using jqgrid drag and drop , i have two tables TABLE A and TABLE B, i am draging one row from TABLE A and Droping into TABLE B, i Want to capture new row id and data received in table, is there any receive event in jqGrid ?
A:
You can define ondrop
event function (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jquery_ui_methods#options1) like following
jQuery("#table2").jqGrid('gridDnD', {
ondrop: function (ev, ui, getdata) {
// var acceptId = $(ui.draggable).attr("id");
// getdata is the data from $('#table1').jqGrid('getRowData',acceptId);
// so you have full information about dropped row
}
});
inside of ondrop
's parameters you will find all information which you need.
Oleg
2010-05-18 15:00:57