This question is locked. New answers and comments are not allowed.
I have a master-detail grid using Ajax hierarchy that works fine, the inner grid binds properly to the selected row. I now want to pass a query string (entered by user) from the master grid to the controller so I can filter results. The code below works fine except that I can't figure out how to get it to bind data from user input instead of what's in ViewData.
Given this html
@Html.TextBox("nameFilter", "Search")
I would like to see
This obviously comes across as a string:
.Select("_JobList", "Job", new {nameFilter = "#= JobName #" }))
With Ajax binding how do I get user selection criteria back to the controller?
Thanks,
<%= Html.Telerik().Grid(Model) .Name("Orders") .DataBinding(dataBinding => dataBinding //Ajax binding .Ajax() //The action method which will return JSON and its arguments .Select("_AjaxBinding", "Home", new {id = (string)ViewData["id"]}) ) .Pageable() .Sortable()Given this html
@Html.TextBox("nameFilter", "Search")
I would like to see
POST http://localhost:55911/Job/_JobList?nameFilter=Search
This obviously comes across as a string:
.Select("_JobList", "Job", new {nameFilter = "#= JobName #" }))
With Ajax binding how do I get user selection criteria back to the controller?
Thanks,
Kevin