We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to copy selected records to clipboard using Contextmenu?

This Knowledge base explains how to copy selected records of grid to clipboard using context Menu.

Solution:

This behavior can be achieved by using the contextClick event of Grid. In the contextClick event the selected rows are obtained by using the getSelectedRows method. Then the selected rows are copied to the clipboard using JQuery methods.

The following code example demonstrates how to copy selected records of grid to clipboard using contextMenu.

1.Render the Grid control.

HTML

JavaScript

MVC

 

C#

 

ASPX

 

C#

 

ASP.NET CORE

 

C#

 

Angular

HTML

 

TS

 

2. In contextClick event the selected rows are obtained by using getSelectedRows method. Then we have created a table with the selected rows and copied the table to the clipboard using the JQuery methods.

JS

 

Result:

Article ID: Published Date: Last Revised Date: Platform: Control:
9218 08/27/2018 08/27/2018 ASP.NET Web Forms Grid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.