title: Calling a method in the parent component from a child component using blazor server
body: <p>I am using Blazor server for my development and have a Parent component
  below called EventCallBackParent.</p>
  <pre><code>        @page &quot;/eventcallbackparent&quot;
  
          &lt;h3&gt;EventCallBackParent&lt;/h3&gt;
  
          &lt;div&gt;
              &lt;EventCallBackChild onDoneButtonClicked=&quot; &quot;&gt;&lt;/EventCallBackChild&gt;
          &lt;/div&gt;
  </code></pre>
  <p>Here is the c# class/code for my Parent component</p>
  <pre><code>        public partial class EventCallBackParent
              {
  
                  public async void Done()
                  {
                      //Call a method here
                      ModalDisplay = &quot;none&quot;;
                      ModalClass = &quot;&quot;;
                      StateHasChanged();
                  }
              }
  </code></pre>
  <p>Here is what my child component looks like</p>
  <pre><code>        &lt;h3&gt;EventCallBackChild&lt;/h3&gt;
  
          &lt;div class=&quot;row align-items-center py-3&quot;&gt;
              &lt;div class=&quot;col-auto d-flex align-items-center&quot;&gt;
                  &lt;div class=&quot;card&quot; @onclick=&quot;DoneButtonClicked&quot;&gt;
                      &lt;div class=&quot;card-body&quot;&gt;
                          &lt;p&gt;Standard&lt;/p&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
  
          @code {
           
              [Parameter]
              public EventCallback onDoneButtonClicked { get; set; }
  
              protected async Task DoneButtonClicked()
              {
  
              }
          }
  </code></pre>
  <p>Here is what I want to happen. When the standard card is clicked I want to
  call the Done method in my parent component. Is this possible? If yes, how
  can I go about it?</p>
  <p><a href="https://i.stack.imgur.com/JbgNc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JbgNc.png" alt="enter image description here" /></a></p>