Disable the clipboard CopyPaste warning message in GridControl

Hi,

When 2D data is pasted from the clipboard to GridControl and the data exceeds the control's row or column number, the "There is no enough space, Do you wish to Continue" message is shown. Is it possible to disable that message and let a data subset to be pasted?




3 Replies

VS Vijayarasan Sivanandham Syncfusion Team May 16, 2023 01:59 PM UTC

Hi Ilia Korjoukov,

We have checked the feasibility to achieve your requirement. We regret to inform you that there is no possibility to achieve your requirement to disable that message and let a data subset be pasted.

Regards,
Vijayarasn S



IK Ilia Korjoukov May 16, 2023 09:59 PM UTC

hi Vijayarasn,


Thank you for a quick reply! I have a next question then. If a user press 'No' in that message dialog, is there is way to track it programmatically? My problem is that I have custom code in the grid.Model.ClipboardPaste callback, which is still called despite of an user pressing 'No' in the message dialog. Thus, when it happens, my code is executed while  actual pasting is cancelled.

Thank you in advance!




VS Vijayarasan Sivanandham Syncfusion Team May 17, 2023 03:10 PM UTC

Ilia Korjoukov,

We have checked the feasibility to achieve your requirement. We regret to inform you that there is no possibility to track the message box pressed button state (Yes / No ) programmatically.


Loader.
Up arrow icon