title: Show (Kendo) dialog on MVC page with multiple submit buttons
body: <p>I have a complex view with multiple submit buttons. I implemented Multiple submit behavior through this attribute:</p>
  
  <pre><code>[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
  public class MultipleButtonAttribute : ActionNameSelectorAttribute
  {
      public string Name { get; set; }
  
      public string Argument { get; set; }
  
      public override bool IsValidName(ControllerContext controllerContext, string actionName, MethodInfo methodInfo)
      {
          var isValidName = false;
          var keyValue = $"{Name}:{Argument}";
          var value = controllerContext.Controller.ValueProvider.GetValue(keyValue);
  
          if (value != null)
          {
              controllerContext.Controller.ControllerContext.RouteData.Values[Name] = Argument;
              isValidName = true;
          }
  
          return isValidName;
      }
  }
  </code></pre>
  
  <p>In the controller, this is how I used the attribute:</p>
  
  <pre><code>    [HttpPost]
      [ValidateAntiForgeryToken]
      [MultipleButton(Name = "action", Argument = "Refresh")]
      public async Task&lt;ActionResult&gt; GenerateBillRefresh(GenerateBillViewModel model)
      {
         ...
      }
  
      [HttpPost]
      [ValidateAntiForgeryToken]
      [MultipleButton(Name = "action", Argument = "MapCompanies")]
      public async Task&lt;ActionResult&gt; GenerateBillMapCompanies(GenerateBillViewModel model)
      {
         ...
      }
  
      [HttpPost]
      [ValidateAntiForgeryToken]
      [MultipleButton(Name = "action", Argument = "Validate")]
      public async Task&lt;ActionResult&gt; GenerateBillValidate(GenerateBillViewModel model)
      {
         ...
      }
  
      [HttpPost]
      [ValidateAntiForgeryToken]
      [MultipleButton(Name = "action", Argument = "Confirm")]
      public async Task&lt;ActionResult&gt; GenerateBillConfirm(GenerateBillViewModel model)
      {
         ...
      }
  </code></pre>
  
  <p>On the view, the buttons are written as:</p>
  
  <pre><code>    &lt;button class="btn btn-success" type="submit" name="action:Refresh" style="width: 100%"&gt;Refresh&amp;nbsp;&lt;i class="fal fa-sync"&gt;&lt;/i&gt;&lt;/button&gt;
      ...
      &lt;button class="btn btn-block btn-info" type="submit" name="action:Validate" style="width: 100%"&gt;Proceed&amp;nbsp;&lt;i class="fal fa-arrow-right"&gt;&lt;/i&gt;&lt;/button&gt;
      ...
      &lt;button class="btn btn-block btn-info" type="submit" name="action:MapCompanies" style="width: 100%"&gt;&lt;i class="fal fa-magnet"&gt;&lt;/i&gt;&amp;nbsp;Map Companies&lt;/button&gt;
      ...
      &lt;button class="btn btn-block btn-warning" type="submit" name="action:Confirm" style="width: 100%"&gt;&lt;i class="fal fa-check"&gt;&lt;/i&gt;&amp;nbsp;Confirm&lt;/button&gt;
  </code></pre>
  
  <p>Now, the <code>action:Confirm</code> is the button that I want to block submit through a dialog (Kendo MVC Dialog) with simple text with a yes &amp; a no button.</p>
  
  <p>What I did to hit a wall:</p>
  
  <pre><code>    @(Html.Kendo().Dialog()
        .Name("dialogConfirm")
        .Title("Bill Generate")
        .Visible(false)
        .Content($"&lt;p&gt;Are you sure you want to bill &lt;strong&gt;{(!string.IsNullOrWhiteSpace(Model?.CustomerName)?Model?.CustomerName:Model?.DefaultCompany)}&lt;/strong&gt;?&lt;p&gt;")
        .Width(400)
        .Modal(true)
        .Actions(actions =&gt;
        {
            actions.Add().Text("No");
            actions.Add().Text("Yes").Primary(true).Action("dialogActionYes");
        })
      )
  
  @section Scripts {
      &lt;script type="text/javascript"&gt;
          ...
          var dialogConfirm = $("#dialogConfirm");
  
          $("#actionConfirm").click(function (e) {
              e.preventDefault();
              dialogConfirm.data("kendoDialog").open();
  
              return false;
          });
  
          function dialogActionYes(e) {
              dialogConfirm.data("kendoDialog").close();
  
              $("#FormBillAmin").submit();
          }
      &lt;/script&gt;
  }
  </code></pre>
  
  <p>Issue: that .submit() doesn't land on the particular action I setup through MultipleButtonAttribute: <code>action:Confirm</code></p>