right click on a cell, select and copy data from cell
I need to be able to select data from any cell in a grid, copy it to the default to the default and paste it onto an outside application.
I am using version 2.1.
e.g. whether by clicking on a cell, or right clicking on it to reveal the edit menu. Right now when I right click on a cell, I get the edit menu, but the copy functionality is not available. Also selecting data on a cell, and doing a CTRL-C does not copy it to the clipboard.
Any hints on how to configure my grid so that I can do this??
Here is a view of my code
#myGrid {width: auto; overflow: auto; background: #e0daa7;}
.. columns
rows
.headers ..
#myGrid .aw-grid-row .aw-cells-selected {background: #FFFFFF;}
var myData = [ ..];
var myHeaders = [ .];
var obj = new AW.Grid.Extended;
obj.setId("myGrid"); // necessary for CSS rules
obj.setVirtualMode(false); // disable virtual mode
obj.setCellText(myData); // 2-dimensional js array
obj.setCellEditable(true); enable editing
obj.setHeaderCount(1);
obj.setHeaderText(myHeaders); // js array (see top of this page)
obj.setColumnCount(8);
obj.setRowCount(<%=idataRecordSetSize%>);
obj.setSelectorVisible(true);
obj.setSelectorText(function(i){return this.getRowPosition(i)+1});
document.write(obj);
I am using version 2.1.
e.g. whether by clicking on a cell, or right clicking on it to reveal the edit menu. Right now when I right click on a cell, I get the edit menu, but the copy functionality is not available. Also selecting data on a cell, and doing a CTRL-C does not copy it to the clipboard.
Any hints on how to configure my grid so that I can do this??
Here is a view of my code
#myGrid {width: auto; overflow: auto; background: #e0daa7;}
.. columns
rows
.headers ..
#myGrid .aw-grid-row .aw-cells-selected {background: #FFFFFF;}
var myData = [ ..];
var myHeaders = [ .];
var obj = new AW.Grid.Extended;
obj.setId("myGrid"); // necessary for CSS rules
obj.setVirtualMode(false); // disable virtual mode
obj.setCellText(myData); // 2-dimensional js array
obj.setCellEditable(true); enable editing
obj.setHeaderCount(1);
obj.setHeaderText(myHeaders); // js array (see top of this page)
obj.setColumnCount(8);
obj.setRowCount(<%=idataRecordSetSize%>);
obj.setSelectorVisible(true);
obj.setSelectorText(function(i){return this.getRowPosition(i)+1});
document.write(obj);
Paul W (Paul_Were
August 24,