Hi, I want to show data in grid function is calling but not show in the grid. I debug the code I can see the id value when the cursor reaches the $.ajax then directly go to the end of brackets, I don't know what is a problem any expert can you tell where I am wrong.
C# Function
- public JsonResult GetProduct_Detail(int id)
- {
- var resultProdD = _IProducts.GetProductByID(id);
- return Json(resultProdD,JsonRequestBehavior.AllowGet);
- }
Master Grid
- <div class="row">
- <div class="col-md-12">
- <div class="panel widget">
- <div class="panel-heading">
- div>
- <div class="panel-body-list table-responsive">
- <table class="table table-striped table-hover no-head-border">
- <thead class="vd_bg-grey vd_white">
- <tr>
- <th>#th>
- <th>Nameth>
- <th>Modelth>
- <th>Conditionth>
- <th>UnitPriceth>
- <th>Mani Priceth>
- <th>Discountth>
- <th>Weightth>
- <th>Actionth>
- tr>
- thead>
- <tbody>
- @foreach (var item in Model)
- {
- <tr>
- <td>@item.ProductIDtd>
- <td>@item.PNametd>
- <td>@item.Modeltd>
- <td>@item.Conditiontd>
- <td>@item.ManificturedPricetd>
- <td>@item.Discounttd>
- <td>@item.UnitWeighttd>
- <td>@item.UnitInStocktd>
- <td class="menu-action">
- <a href="javascript:void(0);" class="btn menu-icon vd_bd-grey vd_grey" data-original-title="view" data-toggle="tooltip" data-placement="top" data-id="@item.ProductID"><i class="fa fa-eye">i> a>
- <a href="~/Items/[email protected]" class=" anchorDetail btn menu-icon vd_bd-grey vd_grey" data-original-title="view" data-toggle="tooltip" data-placement="top" data-id=""><i class="fa fa-pencil">i> a>
- <a href="javascript:void(0);" class="btn menu-icon vd_bd-grey vd_grey" data-original-title="view" data-toggle="tooltip" data-placement="top" data-id="@item.ProductID"><i class="fa fa-times">i> a>
- td>
- tr>
- }
- tbody>
- table>
- div>
- div>
Jquery Function