This question is locked. New answers and comments are not allowed.
Hi,
we are using the telerik mvc grid (2011.1.315.340). trying to disply parent child hierarchical grid using the server binding.
when it is rendering, the detail view template is getting rendering outside of the grid (above the grid). Below is the code.
please help me resolving this issue
thanks and regards,
Ravindra
we are using the telerik mvc grid (2011.1.315.340). trying to disply parent child hierarchical grid using the server binding.
when it is rendering, the detail view template is getting rendering outside of the grid (above the grid). Below is the code.
Html.Telerik().Grid(context.Data) .Name("Employees") .ClientEvents(events => events.OnLoad("function(e) { $(this).find('table').css('table-layout', 'fixed'); }")) .Columns(columns => { if (Columns != null) { foreach (EYCGridColumn item in Columns) { columns.Bound(item.Key).Title(item.Header).Filterable(item.Filterble).Sortable(item.Sortable).Groupable(item.Groupable).Format(item.Format).Visible(item.IsVisible).HtmlAttributes(new { @style = "text-align:left" }); } } else { columns.AutoGenerate(true); } }) .DetailView(details => details.Template(e => { Html.Telerik().Grid(((SampleData)e).Children) .Name("Orders_") .HtmlAttributes(new { @class = "attachment-grid" }) .ClientEvents(events => events.OnLoad("HideHeader")) .Columns(columns => { if (Columns != null) { foreach (EYC.CRM.UI.ViewModels.Shared.UserControls.Grid.EYCGridColumn item in Columns) { columns.Bound(item.Key).Title(item.Header).Filterable(item.Filterble).Sortable(item.Sortable).Groupable(item.Groupable).Format(item.Format).Visible(item.IsVisible).HtmlAttributes(new { @style = "text-align:left" }); } } else { columns.AutoGenerate(true); } }) //.DataBinding(dataBinding => dataBinding.Server().Select("_AjaxBinding", "Grid", new { clientID = "<#= ClientID #>" })) .Footer(false) .Render(); } ) ) .Pageable(paging => paging.Enabled(true)).Scrollable(scrolling => scrolling.Enabled(true)) .Sortable()please help me resolving this issue
thanks and regards,
Ravindra