@{
	ViewBag.Title = "Home Page";
}

@using TelerikMvcApp1.Models

@(Html.Kendo().Grid<OrderViewModel>()
	.Name("grid")
	.Columns(columns =>
	{
		columns.Bound(p => p.OrderID);
		columns.Bound(p => p.Freight);
		columns.Bound(p => p.OrderDate).Format("{0:MM/dd/yyyy}");
		columns.Bound(p => p.ShipName);
		columns.Bound(p => p.ShipCity);
		columns.Bound(p => p.Freight).ClientTemplate(Html.Partial("Partial2", new ViewDataDictionary { { "param1", "#= Freight#" } }).ToHtmlString());
	})
	.DataSource(dataSource => dataSource
		.Ajax()
		.PageSize(20)
		.Read(read => read.Action("Orders_Read", "Home"))
	)
	.Pageable()
)
