If I only had a grid to display in the detailview, I could set it up something like this
http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-master---detail-client-detail-template-and-hierarchy.html
Specificially, this example is what im currently looking at.
How could I combine the detail grid, with another section of html that immediately follows the detail grid ?
<%= Html.Telerik().Grid<MvcApplication.Models.Employee>()
.Name("Employees")
.DataBinding(dataBinding => dataBinding.Ajax()
// Specify the action method which returns the Employee objects
.Select("_Employees", "Home"))
.Columns(columns =>
{
columns.Bound(e => e.FirstName);
columns.Bound(e => e.LastName);
columns.Bound(e => e.Title);
})
.DetailView(detailView => detailView.ClientTemplate(
// Define a grid bound to the Order object
Html.Telerik().Grid<MvcApplication.Models.Order>()
//Ensure the Name of each grid is unique
.Name("Orders_<#= EmployeeID #>")
.DataBinding(dataBinding => dataBinding.Ajax()
// Specify the action method which returns the Orders for a particular Employee
// Notice how the `EmployeeID` value is passed as the `id` argument using a client expression
.Select("_Orders", "Home", new { id = "<#= EmployeeID #>"}))
.Columns(columns =>
{
columns.Bound(o => o.OrderID);
columns.Bound(o => o.ShipName);
columns.Bound(o => o.ShipAddress);
columns.Bound(o => o.ShipCity);
})
.Pageable()
// The client detail view template requires a string so we are using the ToHtmlString method
.ToHtmlString()
))
// Handle the OnRowDataBound event in order to expand certain rows
.ClientEvents(events => events.OnRowDataBound("onRowDataBound"))
%>
However, below this grid, I then want to display the two other tables that contain editble text boxes and other html content BELOW the detailview grid.
Is this possible?