lundi 25 juillet 2016

How to pass hidden field value as parameter to action method

How do I pass a hidden field value as parameter to action method from kendo grid action method?

.Selectable(s => s.Mode(GridSelectionMode.Single))
 .Events(e => e.Change("UtilitySelected"))
  //.ClientDetailTemplateId("utility-detail")
   .DataSource(dataSource => dataSource
   .Ajax()
   .ServerOperation(false)
   .Group(groups => groups.Add(p => p.ISO))
   .Read(operationBuilder => operationBuilder
   .Action("SearchResultJson", "Flash", new { historyType=$("#HistoryName")})

Need to pass $("#HistoryName") value to the controller

Any way to do that?

Aucun commentaire:

Enregistrer un commentaire