I want to click button Trigger edit function
Please help me~
http://jsfiddle.net/8p9NV/
<button type="button" id="editbutton">
Edit click
</button>
$("#editbutton").click(function (row) {
editrow = row;
var offset = $("#jqxgrid").offset();
$("#popupWindow").jqxWindow({ position: { x: parseInt(offset.left) + 60, y: parseInt(offset.top) + 60 } });
var dataRecord = $("#jqxgrid").jqxGrid('getrowdata', editrow);
$("#firstName").val(dataRecord.firstname);
$("#lastName").val(dataRecord.lastname);
$("#product").val(dataRecord.productname);
$("#quantity").jqxNumberInput({ decimal: dataRecord.quantity });
$("#price").jqxNumberInput({ decimal: dataRecord.price });
// show the popup window.
$("#popupWindow").jqxWindow('open');
});