New to Kendo UI for jQuery? Start a free 30-day trial

Error

events

Fired when an error occurs during SmartPasteButton processing.

Event Data

e.sender kendo.ui.SmartPasteButton

The widget instance which fired the event.

e.error String

The error message describing what went wrong.

<form id="form">
    <input name="firstName" />
    <button id="smartPasteButton"></button>
</form>

<script>
$("#smartPasteButton").kendoSmartPasteButton({
    service: {
        url: "https://your-ai-service.com/api/parse"
    },
    error: function(e) {
        console.log("Error occurred: " + e.error);
    }
});
</script>
<form id="form">
    <input name="firstName" />
    <button id="smartPasteButton"></button>
</form>

<script>
function onError(e) {
    alert("Processing failed: " + e.error);
}

$("#smartPasteButton").kendoSmartPasteButton({
    service: {
        url: "https://your-ai-service.com/api/parse"
    }
});

var smartPasteButton = $("#smartPasteButton").data("kendoSmartPasteButton");
smartPasteButton.bind("error", onError);
</script>
Not finding the help you need?
Contact Support