Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buttonclick: function (row) {
- // open the popup window when the user clicks a button.
- editrow = row;
- var offset = $("#grid").offset();
- $("#popupWindow").jqxWindow({ position: { x: parseInt(offset.left) + 60, y: parseInt(offset.top) + 60 } });
- // get the clicked row's data and initialize the input fields.
- var dataRecord = $("#grid").jqxGrid('getrowdata', editrow);
- $("#name").val(dataRecord.name);
- $("#description").val(dataRecord.description);
- $("#date").val(formatAMPM());
- $("#user").val(dataRecord.user);
- $("#path").val(dataRecord.path);
- $("#active").val(dataRecord.active);
- $("#seq").val(dataRecord.seq);
- $("#topic").val(dataRecord.topic);
- // show the popup window.
- $("#popupWindow").jqxWindow('open');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement