Handle Events and Define Callbacks
To handle an event or define a callback, implement a JavaScript function as follows:
A short inline function.
An external function.
js<script> function myButton_click() { alert("The button was clicked"); } function vectorMap_tooltip_customizeTooltip (arg) { return { text: arg.attribute("text") }; } </script>
A function wrapped into the Razor
@<text>
block (C# only).@(Html.DevExtreme().Button() .OnClick(@<text> function () { alert("The button was clicked"); } </text>) ) @(Html.DevExtreme().VectorMap() .Tooltip(t => t .CustomizeTooltip(@<text> function (arg) { return { text: arg.attribute("text") }; } </text>) ) )