Click Here
Hi,
I have a problem , can anybody explain what this code really mean...
.ClientEvents(events => events.OnRowDataBound("orders_onRowDataBound"))
.DetailView(ordersDetailView => ordersDetailView.ClientTemplate(
Html.Telerik().Grid<OrderDetailsViewModel>()
.Name("OrderDetails_<#= OrderID #>")
.Columns(columns =>
{
columns.Bound(od => od.ProductName).Width(233);
columns.Bound(od => od.Quantity).Width(200);
columns.Bound(od => od.UnitPrice).Width(200);
columns.Bound(od => od.Discount);
})
.DataBinding(dataBinding => dataBinding.Ajax()
.Select("_OrderDetailsForOrderHierarchyAjax", "Grid", new { orderID = "<#= OrderID
#>" }))
.Pageable()
.Sortable()
.ToHtmlString()
))
I can understand most of the part but the problem comes when I go through this line
.DataBinding(dataBinding => dataBinding.Ajax()
.Select("_OrderDetailsForOrderHierarchyAjax", "Grid", new { orderID = "<#= OrderID
#>" }))
I think _OrderDetailsForOrderHierarchyAjax refers to methode _OrderDetailsForOrderHierarchyAjax(int val) methode in controler and what is
new { orderID = "<#= OrderID #>" }
is that the parameter we passe to methode?
I think problem is clear.
thx in advance..