Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Add Row Button
- var oAddButton = new YAHOO.widget.Button({
- id:"addButton",
- type: 'button',
- label:"Add a New Page",
- onclick: { fn: function(e) {myDataTable.addRow({PageCategoryName: "", PageTitle: "test", PageDescription: "", PageURI: ""}); } },
- container:"addBTN" });
- var newRecordID = function(args) {
- myDataTable.unselectAllRows()
- myDataTable.selectRow(args.record);
- myDataTable.getTrEl(args.record).scrollIntoView()
- }
- myDataTable.subscribe('rowAddEvent', newRecordID);
Add Comment
Please, Sign In to add comment