title: How to sent parameter token from kendo grid, in url.action .NET MVC
body: <p>I want to sent parameter to view via <code>@Url.Action</code></p>
  
  <p>I've tried something like that, I don't want to sent a default parameter. I want to sent the value of id column of grid selected row.  </p>
  
  <pre><code>&lt;input type="button" value="Sınıf Listeleri Raporu" onclick="window.location.href='@(Url.Action("SinifListeleri", "Tanim", new { BasvuruId= "value"}).ToString())   ';" /&gt;
  </code></pre>
  
  <p>So how can I set the value as value of id column of grid selected row. If I could call a javascript function as return value, it will be useful for me. </p>
  
  <p>And also I can use anything except ajax because ajax conflicted with other functions of my project.</p>
  
  <p>---- Second Explanation--- Sory for my English</p>
  
  <p>I have a grid. It has id column. I select a row, then press details button. A window opens. There is a download link there. This link call Download function from BasvuruController. This function need an Id parameter. I can't find how to sent this selected row Id to this function.</p>
  
  <p>----Kendo Grid Code ---- </p>
  
  <pre><code>@(Html.Kendo().Grid(Model)
  .Name("basvurular")
  .Columns(columns =&gt;
  {
      columns.Command(command =&gt; command.Custom("ViewDetails")
  .Text("Göster").HtmlAttributes(new { @onClick="ff()" })
  ).Width(80);
      columns.Bound(p =&gt; p.KisiAdSoyad).Width(150).Filterable(f =&gt; f.Extra(false)).HtmlAttributes(new { styles = "min-length:150px" });
      columns.Bound(p =&gt; p.DonemKursVeDonemSinifi).Width(200).Title("Kurs ve Şubesi").Filterable(f =&gt; f.Extra(false)).HtmlAttributes(new { styles = "min-length:200px" });
      columns.Bound(p =&gt; p.BasvuruZamani).Width(150).Format("{0:yyyy/MM/dd HH:mm:ss }").HtmlAttributes(new { styles = "min-length:150px" });
      columns.Bound(p =&gt; p.ToplamUcret).Width(80).Format("{0:c2}").Title("Ücret").Filterable(false).HtmlAttributes(new { styles = "min-length:80px" });
      columns.Bound(p =&gt; p.DonemTanim).Width(160).Filterable(filterable =&gt; filterable.UI("DonemFilter").Extra(false)).Title("Dönem").HtmlAttributes(new { styles = "min-length:160px" });
      columns.Bound(p =&gt; p.DurumKoduTanim).Width(130).Filterable(filterable =&gt; filterable.UI("DurumFilter").Extra(false)).Title("Durum").HtmlAttributes(new { styles = "min-length:130px" });
      columns.Bound(p =&gt; p.Id).Visible(false);
      columns.Command(command =&gt; { command.Edit().Text("Güncelle"); command.Custom("Onay").Text("Onayla/Reddet").Click("OnayEkrani"); }).Width(250).HtmlAttributes(new { styles="min-length:250px"});
  })
      .Events(e =&gt; e.Edit("clickUpdate").DataBound("donemFilterControl"))
      .Editable(editable =&gt; editable.Mode(GridEditMode.PopUp)
                                  .Window(conf =&gt; conf.Title("Yeni Başvuru"))
                                  .TemplateName("BasvuruTemplate")
                                  .DisplayDeleteConfirmation("Seçili kaydı silmek istediğinizden emin misiniz?")
               )
  .Pageable()
  .Sortable()
  .Scrollable()
  .Selectable()
      .Events(e =&gt; e.FilterMenuInit("al"))
  .HtmlAttributes(new { style = "height:350px; width:auto" })
  .DataSource(dataSource =&gt; dataSource
      .Ajax()
      .Read(read=&gt;read.Action("BasvuruGridRead","Tanim"))
      .Sort(sort =&gt; sort.Add("KisiAdSoyad").Ascending())
      .PageSize(7)
      .Filter(f =&gt; f.Add(x =&gt; x.DonemTanim).IsEqualTo(@OnlineKursKayit.Helpers.Helper.Islemci.GuncelDonemAra().GetDescription()))
      .Model(model =&gt; model.Id(p =&gt; p.Id))
      .Update(update =&gt; update.Action("BasvuruyuGuncelle", "Tanim"))
  )
  </code></pre>
  
  <p>)</p>
  
  <p>------  JavaScript Function which returns Id of selected index of grid----</p>
  
  <pre><code>function basvuruId(){
      var grid = $("#basvurular").data("kendoGrid");
      var rows = grid.select();
      var BasvuruId=grid.dataItem(rows).Id;
      return BasvuruId;
  }
  </code></pre>