# GrapeCity.ActiveReports.Blazor.Viewer.InitializationOptions.OnAction

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Blazor_Viewer_InitializationOptions_OnAction_" data-uid="GrapeCity.ActiveReports.Blazor.Viewer.InitializationOptions.OnAction*">OnAction Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Blazor_Viewer_InitializationOptions_OnAction_" data-uid="GrapeCity.ActiveReports.Blazor.Viewer.InitializationOptions.OnAction*"></a>
<h4 id="GrapeCity_ActiveReports_Blazor_Viewer_InitializationOptions_OnAction" data-uid="GrapeCity.ActiveReports.Blazor.Viewer.InitializationOptions.OnAction">OnAction</h4>
<div class="markdown level1 summary"><p>Gets or sets the callback that is triggered before the Viewer executes an action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[JsonIgnore]
public Func&lt;ActionInfo, ActionResult&gt; OnAction { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Blazor.Viewer.ActionInfo.html">ActionInfo</a>, <a class="xref" href="GrapeCity.ActiveReports.Blazor.Viewer.ActionResult.html">ActionResult</a>&gt;</td>
      <td><p>A callback function that takes an <a class="xref" href="GrapeCity.ActiveReports.Blazor.Viewer.ActionInfo.html">ActionInfo</a> as input and returns an <a class="xref" href="GrapeCity.ActiveReports.Blazor.Viewer.ActionResult.html">ActionResult</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
