Here is my dilema,
I have a foreach loop over a simple model like this
Model
fund list
fundint int,
fundname varchar
etc.
i am looping through a list of funds above and would like to have a Kendo grid populated with data from the controller for each fundint in the foreach.
<table> @foreach (var item in Model) { <tr> <td>@Html.DisplayFor(modelItem => item.FUND_INT_ID) </td> <tr> <td> @(Html.Kendo().Grid<BetaSMTRApp.Models.Private_Report_Card_Companies_Single_Result>() .Name("AjaxGrid") .AutoBind(true) .Columns(columns => { columns.Bound(c => c.CompanyName).Title("Company Name").Width(150); }) .ColumnMenu() .HtmlAttributes(new { style = "height:600px;" }) .DataSource(dataSource => dataSource .Ajax() .Read(read => read.Action("GetPortfolioCompanies", "PrivateReportCard").Data("additionalInfo")) ) ) </td><script> function additionalInfo() { var frominfo = $("#asofdate").val(); var fundinfo = $("#fundint").val(); return { AsOfDate: frominfo, FundInt: fundinfo}; }</script>How do i pass the FUND_INT_ID in the foreach loop to the GetPortfolioCompanies function in the controller?