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

SetState

methods

Sets a new state for the tool call, re-renders the header badge and body content, and resets expanded to false.

Parameters:stateString

The new state. Valid values are "active", "completed", "awaitingApproval", and "error".

<div id="toolcall"></div>
<script>
$("#toolcall").kendoToolCall({
    label: "run_query",
    state: "active"
});
var toolCall = $("#toolcall").data("kendoToolCall");
toolCall.setState("completed");
</script>
Not finding the help you need?
Contact Support