We have encountered some new issues in the spreadsheet control:
What is the suggested fix for both issues?
Samples:
SpreadsheetCutIssueSample.zip SpreadsheetCutPasteIssueSample.zip
Hello Tomas,
I have been investigating into the two behaviors you are reporting in this case, and these both seem to be unexpected behavior. More on that toward the end of this response.
Regarding a workaround for these issues, I believe your “special cut operation” will help you to work around the first issue in this case, as this appears to be setting the ActiveSelection in the CommandExecuting event for the XamSpreadsheet when a Cut operation is found to be happening, and if you limit your selection to the cells that have actually been used, this operation should happen quicker. With that said, I have noticed that this does not happen in the Workbook in the “special cut operation” sample, even if I remove the code happening during that operation. I am unsure why this is at the moment.
Regarding a workaround for the paste operation, I believe the best thing I can recommend is to also use the CommandExecuting event and check for SpreadsheetCommandType.Paste. You can get the text to be pasted by using the static Clipboard.GetText() method, and you will need to parse out that text and push it to the WorksheetCell Values corresponding to your selection. You will also want to mark the event cancelled (e.Cancel = true) in the case of the paste operation to ensure that the built-in paste does not try to happen.
As mentioned previously, both of these issues are unexpected, and as such I have asked our development teams to examine them further. These issues have an internal tracking ID of 273268 and 273269 and I will be linking them to a private support case that I have created for you. This case has an ID of CAS-213924-M3T1X2 and you can access it after signing into your account, here: https://ko.infragistics.com/my-account/support-activity.
Please let me know if you have any other questions or concerns on this matter.