Paste value in cell from javascript

Hi,

With the gridweb, I would like to set a button on my page that paste the contain of the user's clipboard to cell "A1".

What is the javascript function that achieve this?
Also, is it possible to trigger this action from a grid custom command?

Thanks for your help.

Hi,

Thanks for considering Aspose.

I think you may try:

Sample Code: In Html source of the webpage:

.
.
.
setCellValue
.
.

.
.
.
Thank you.

Hi,

You may also use a custom command button to do this. You need to handle the client side Submit event to catch the command button click event.

assume that you have created a custom command button and its command name is "CMD1".

GridWeb1.OnSubmitClientFunction="OnGridSubmit";

in the aspx file:


Thanks for the prompt and very clear replies.

It works awesome!