Some HTML attributes, such as aria-pressed, don't function properly when the .NET type is a bool. ASP.NET Core Razor Application - How to create a click event for a button? Consider the following Heading component, which can be used by other components to display a heading. Note: In the Razor PageModel, the Handler method name is OnPostSubmit but here it will be specified as Submit when calling from the Razor HTML Page. Monday, August 10, 2009 4:13 . For various QuickGrid demonstrations, see the QuickGrid for Blazor app. Components can also be referenced using their fully qualified names, which doesn't require an @using directive. When placed in a code-behind file, they can make the page feel very much like . They can't be removed or updated afterwards. Razor C# @(Html.DevExtreme().Button() .OnClick("function { alert('The button was clicked'); }") ) @(Html.DevExtreme().VectorMap() .Tooltip(t => t .CustomizeTooltip . EventCallback is strongly typed and requires passing a T argument in InvokeAsync(T) that's assignable to TValue. The QuickGrid component is in preview. Events must propagate to the HTML DOM root before Blazor can act upon them. For more information, see ASP.NET Core Blazor performance best practices. In the wwwroot/index.html or Pages/_Host.cshtml file, add the following