Spread ASP.NET 17
Spread for ASP.NET 17 Product Documentation / Client-Side Scripting Reference / Scripting Members / Methods / CutLikeExcel
In This Topic
    CutLikeExcel
    In This Topic

    Cuts the contents of the selected cells to the Clipboard.

    Syntax

    [JavaScript]

    FpSpread1.CutLikeExcel();

    Parameters

    None

    Return Type

    None

    Remarks

    This method cuts the data. This method does not cause a postback to occur.

    Example

    This is a sample that contains the method. On the client side, the script that contains the method would look like this:

    JavaScript
    Copy Code
    <SCRIPT language=javascript>
       function cutData() {
           FpSpread1.CutLikeExcel();
       }
    </SCRIPT>
    

    This example maps keys to the cut, copy, and paste functions:

    JavaScript
    Copy Code
    <script type="text/javascript">
            window.onload = function () {
               var spread = document.getElementById("FpSpread1");
               spread.AddKeyMap(67, true, false, false, "CopyLikeExcel()"); // Ctrl + C
               spread.AddKeyMap(86, true, false, false, "PasteLikeExcel()"); // Ctrl + V
               spread.AddKeyMap(88, true, false, false, "CutLikeExcel()"); // Ctrl + X
            }
            </script>