Hi Team,
I am using Infragistics v16.1 Web Data Grid. And i want to handle copy multiple selected cell's data from web data grid to clipboard and paste again into web datagrid by using keydown handle event of the grid:
Below is my code:
<Behaviors><ig:Selection CellClickAction="Cell" ColumnSelectType="multiple" CellSelectType="multiple"></ig:Selection><ig:Activation Enabled="true"></ig:Activation><ig:EditingCore BatchUpdating="true" Enabled="true"><Behaviors><ig:CellEditing Enabled="true"></ig:CellEditing></Behaviors></ig:EditingCore><ig:ColumnResizing Enabled="false"></ig:ColumnResizing><ig:ColumnFixing Enabled="false"></ig:ColumnFixing><ig:RowSelectors RowNumbering="True"></ig:RowSelectors></Behaviors>
And i want to handle this in keyup event:
var evt = args.get_browserEvent();
if (evt.ctrlKey && evt.keyCode == 67) {
}
Can you please help me on this.
Hi Rajesh,
You do not need to manually handle this via the keyup and keydown events. The WebDataGrid supports clipboard operations out of the box via its Clipboard behavior. Please see sample demonstrating the use of Clipboard behavior at http://es.infragistics.com/samples/aspnet/data-grid/clipboard and let me know if you have further questions.