title: 0x800a138f - JavaScript runtime error: Unable to get property 'on' of undefined or null reference
body: <p>i take runtime error at the title. i searched on google but i couldn't find about 'on' property.<br/> I m trying to do if grid one not selected, when clicking create button of second grid, give an alert and close pop up edit.</p>
  
  <p><strong>My Grid</strong></p>
  
  <pre><code>               @(Html.Kendo().Grid&lt;Kurslar.Models.DonemKursSinifi&gt;()
      .Name("sinifGrid")
      .Columns(columns =&gt;
      {
          columns.Bound(p =&gt; p.Tanim).Width(50).Title("Tanim");
          columns.Bound(p =&gt; p.DersAdi).Width(50).Title("Ders");
          columns.Bound(p =&gt; p.EgitmenAdiSoyadi).Width(50).Title("Eğitmen");
          columns.Bound(p =&gt; p.KontenjanSayisi).Width(50).Title("Kontenjan");
          columns.Bound(p =&gt; p.DonemBaslangicBitis).Width(50).Title("Dönem");
          columns.Bound(p =&gt; p.TarifeId).Width(50).Title("Tarife");
          columns.Bound(p =&gt; p.DonemId).Visible(false);
          columns.Bound(p =&gt; p.DersId).Visible(false);
          columns.Bound(p =&gt; p.EgitmenId).Visible(false);
          columns.Command(command =&gt; { command.Edit().Text("Güncelle"); command.Destroy().Text("Sil"); }).Width(180);
  
      })
      .Pageable()
      .Sortable()
      .AutoBind(false)
      .Editable(editable =&gt; editable.Mode(GridEditMode.PopUp)
                        .Window(conf =&gt; conf.Title("Yeni Sınıf"))
                          .TemplateName("DonemKursSinifiTemplate"))
      .ToolBar(toolbar =&gt; toolbar.Create().Text("Sınıf Ekle"))
      .Events(e =&gt; e.Edit("onEditSinif"))
      .DataSource(dataSource =&gt; dataSource
          .Ajax()
          .Read(read =&gt; read.Action("GridDonemKursSinifi", "Tanim").Data("data"))
          .Create(create =&gt; create.Action("DonemKursSinifiOlustur", "Tanim").Data("dataCreate"))
          .Update(update =&gt; update.Action("DonemKursSinifiGuncelle", "Tanim").Data("dataUpdate"))
          .Destroy(destroy =&gt; destroy.Action("DonemKursSinifiSil", "Tanim"))
          .PageSize(20)
          .Model(model =&gt; model.Id(p =&gt; p.Id))
       )
       .Resizable(resize =&gt; resize.Columns(true))
  
  )
  </code></pre>
  
  <p><strong>And this is javascript part which give error</strong></p>
  
  <pre><code>alert("You must firstly select a row from grid one.");
  var grid = $("#sinifGrid").data("kendoGrid");
  grid.cancelRow();
  </code></pre>