javascript - How can I drag edit form properly in jqgrid? -


when drag edit form, position of form not valid. starts position (0,0) window. position not relative mouse cursor position.

how can fix this?

these code.

<table id="jqgrid"></table> <div id="jqgridpager"></div>


   $("#jqgrid").jqgrid({         url: url,         mtype: "get",         postdata: data,         datatype: "jsonp",         colmodel: [                         { label: 'd_id', name: 'd_id', width: 15, key: true, hidden: true},             { label: 'driver', name: 'd_name', width: 30, align:"center", editable: true, editoptions: {size: 40} },             { label: 'phone', name: 'd_phone', width: 30, align:"center", editable: true, editoptions: {size: 40} },             { label: '', name: '' }         ],         viewrecords: true,         autowidth: true,         height: '100%',         rownumbers: true,         rownumwidth: 25,         rownum: 20,         editurl: g_base_url + 'driver/edit',         pager: "#jqgridpager",         loaderror : function(xhr,st,err) {          },         loadcomplete: function () {         },         oncellselect: function(rowid, icol, cellcontent, e) {          }     }); 

and jqgrid version 4.8, jquery version jquery-1.11.2 , jquery-ui version 1.11.4.

please visit jqgrid demo , click edit button ("+" symbol in page bar) , drag edit form serveral times. can find position starts @ pos (0,0).

demo link http://www.guriddo.net/demo/guriddojs/edit_add_delete/edit_template/index.html


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -