title: Event JS Functions not referenced
body: <p>I have 2 JS functions that are noe being recognized by the  Kendo UI Grid.  </p>
  
  <ol>
  <li>columns.Command(command => 
                  command.Custom("Activate").Click("ActivateHandler"));</li>
  <li>Events(events => events.Error("errorHandler"))</li>
  </ol>
  
  <p>Are the 2 functions that are set in the Grid and I have supplied the scripts that they should call.  But I render the page, this is the error I am getting <strong><em>'ReferenceError: ActivateHandler is not defined in /PhoneNumberView/Inactive'</em></strong></p>
  
  <pre><code>@(Html.Kendo().Grid&lt;ClientsToProfitsKendoUI.Data.PhoneNumberListModel&gt;()
              .Name("grid")
              .Columns(columns =&gt;
              {
                  columns.ForeignKey(c =&gt; c.PhoneNumberTypeId
                      , (System.Collections.IEnumerable)ViewData["PhoneNumberType"]
                      , "Key", "Value").Width(140);
                  columns.Bound(c =&gt; c.PhoneNumber1).Width(190);
                  columns.Command(command =&gt; 
                      command.Custom("Activate").Click("ActivateHandler"));
              })
              .ToolBar(toolbar =&gt;
              {
                  toolbar.Save();
              })
              .HtmlAttributes(new { style = "padding: 10px;" })
                  .Editable(editable =&gt; editable.Mode(GridEditMode.InCell))
              .Scrollable()
              .Groupable()
              .Sortable()
              .Pageable(pageable =&gt; pageable
                  .Refresh(true)
                  .PageSizes(true)
                  .ButtonCount(5))
              .DataSource(dataSource =&gt; dataSource
                  .Ajax()
                  .Batch(true)
                  .PageSize(20)
                  .ServerOperation(false)
                  .Events(events =&gt; events.Error("errorHandler"))
                  .Model(model =&gt; model.Id(p =&gt; p.PhoneNumberId))
                      .Read("Inactive_Read", "PhoneNumberView")
                              .Update("Inactive_Update", "PhoneNumberView")
              )
      )
      &lt;script type="text/javascript"&gt;
          function errorHandler(e) {
              if (e.errors) {
                  var message = "Errors:\n";
                  $.each(e.errors, function (key, value) {
                      if ('errors' in value) {
                          $.each(value.errors, function () {
                              message += this + "\n";
                          });
                      }
                  });
                  alert(message);
              }
          }
  
          function ActivateHandler(e) {
              e.preventDefault();
      ...
          }
      &lt;/script&gt;
  </code></pre>
  
  <p>This might be a good thing to know is that this Kendo UI Grid is inside a KendoUI PanelBar that uses ajax to build the pages.</p>
  
  <pre><code>&lt;ul id="PhoneNumbersPanel"&gt;
                                      &lt;li id="Active"&gt;
                                          Active
                                          &lt;div style="padding:10px"&gt;&lt;/div&gt;
                                          &lt;br /&gt;
                                      &lt;/li&gt;
                                      &lt;li&gt;
                                          Inactive
                                          &lt;div style="padding:10px"&gt;&lt;/div&gt;
                                          &lt;br /&gt;
                                      &lt;/li&gt;
                                      &lt;li&gt;
                                          All
                                          &lt;div style="padding:10px"&gt;&lt;/div&gt;
                                          &lt;br /&gt;
                                      &lt;/li&gt;
                                  &lt;/ul&gt;
                                  &lt;script&gt;
                                      $("#PhoneNumbersPanel").kendoPanelBar({
                                          animation: {
                                              // fade-out closing items over 1000 milliseconds
                                              collapse: {
                                                  duration: 500,
                                                  effects: "fadeOut"
                                              },
                                              // fade-in and expand opening items over 500 milliseconds
                                              expand: {
                                                  duration: 500,
                                                  effects: "expandVertical fadeIn"
                                              }
                                          },
                                          expandMode: "single",
                                          contentUrls: ["/PhoneNumberView/Active"
                                                          , "/PhoneNumberView/Inactive"
                                                          , "/PhoneNumberView/AllActive"]
                                      });
  </code></pre>