Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. buttonclick: function (row) {
  2. // open the popup window when the user clicks a button.
  3. editrow = row;
  4. var offset = $("#grid").offset();
  5. $("#popupWindow").jqxWindow({ position: { x: parseInt(offset.left) + 60, y: parseInt(offset.top) + 60 } });
  6. // get the clicked row's data and initialize the input fields.
  7. var dataRecord = $("#grid").jqxGrid('getrowdata', editrow);
  8. $("#name").val(dataRecord.name);
  9. $("#description").val(dataRecord.description);
  10. $("#date").val(formatAMPM());
  11. $("#user").val(dataRecord.user);
  12. $("#path").val(dataRecord.path);
  13. $("#active").val(dataRecord.active);
  14. $("#seq").val(dataRecord.seq);
  15. $("#topic").val(dataRecord.topic);
  16. // show the popup window.
  17. $("#popupWindow").jqxWindow('open');
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement