PDA

View Full Version : Zeroclipboard & grid



l0ga4
3 Oct 2009, 8:56 AM
Hello,
Please help with one issue:
I have grid panel with some rows and cells. With RowActions plugin i make images cells. and i want after click on this image copy to clipboard some information.

for example:


var aColumn = new Ext.ux.grid.RowActions({
....
actions: [....{
iconCls :'phone'
}
....],
callbacks:{
...,'phone':function(grid, record, action, row, col) {
alert('test');
},
....

Callback work excellent! but how copy phone information with zeroclipboard.
I try to add "text" information to this cell like:

<div id="bcopybutton" style="display:inline" >\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>

And glue this button to clip (clip = zeroclipboard.client). But it's not work....
please help with solution...