This question is locked. New answers and comments are not allowed.
Hi,
just updated to 2010.2.825 because I wanted to try out the DetailView with nested grids. First thing is that ajaxbinding stopped working on this grid (code example below). Also rowselection stopped working. When switching back to older versions (2010.1.416 or 2010.1.309) it works fine, but DetailView is not supported I believe. Second thing is that adding a detailview and the necessary javascript (see code below) only adds a plus symbol to the row. Doesn't work in my case. Am I missing something here?
Thanx in advance,
Kind regards Mario.
<%= Html.Telerik().Grid<VestigingDTO>()
.Name("Grid")
.DataKeys(keys =>
{
keys.Add(item => item.extId);
})
.DataBinding(dataBinding =>
{
dataBinding.Ajax()
.Select("_Index", "Branche");
})
.Columns(columns =>
{
columns.Bound(o => o.omschrijving).Title("naam");
columns.Bound(o => o.Adres._voll_adres_pc_plaats).Title("adres");
columns.Bound(o => o.ContactGegevens.email1).Title("e-mail");
columns.Bound(o => o.ContactGegevens.tel_main).Title("telefoon");
columns.Bound(o => o.extId).Hidden(true).Filterable(false).Sortable(false).HeaderHtmlAttributes(new { @style = "display:none;" });
})
.ToolBar(commands => commands
.Custom()
.HtmlAttributes(new { id = "insert_button" }).Text("Nieuw item")
)
.Selectable()
.Pageable()
.Sortable()
.ClientEvents(events =>
{
events.OnRowSelected("RowSelect");
})
//detailview goes here
%>
detailview code:
.DetailView(details => details.ClientTemplate(
Html.Telerik().Grid<GroepDTO>()
.Name("groupSublistView_<#= extID #>")
.DataBinding(dataBinding => dataBinding.Ajax()
.Select("GroupList", "Group", new { extId = "<#= extID #>" }))
.Pageable()
.Sortable()
.ClientEvents(events =>
{
events.OnRowSelected("RowSelectGroup");
})
.ToHtmlString()
))
just updated to 2010.2.825 because I wanted to try out the DetailView with nested grids. First thing is that ajaxbinding stopped working on this grid (code example below). Also rowselection stopped working. When switching back to older versions (2010.1.416 or 2010.1.309) it works fine, but DetailView is not supported I believe. Second thing is that adding a detailview and the necessary javascript (see code below) only adds a plus symbol to the row. Doesn't work in my case. Am I missing something here?
Thanx in advance,
Kind regards Mario.
<%= Html.Telerik().Grid<VestigingDTO>()
.Name("Grid")
.DataKeys(keys =>
{
keys.Add(item => item.extId);
})
.DataBinding(dataBinding =>
{
dataBinding.Ajax()
.Select("_Index", "Branche");
})
.Columns(columns =>
{
columns.Bound(o => o.omschrijving).Title("naam");
columns.Bound(o => o.Adres._voll_adres_pc_plaats).Title("adres");
columns.Bound(o => o.ContactGegevens.email1).Title("e-mail");
columns.Bound(o => o.ContactGegevens.tel_main).Title("telefoon");
columns.Bound(o => o.extId).Hidden(true).Filterable(false).Sortable(false).HeaderHtmlAttributes(new { @style = "display:none;" });
})
.ToolBar(commands => commands
.Custom()
.HtmlAttributes(new { id = "insert_button" }).Text("Nieuw item")
)
.Selectable()
.Pageable()
.Sortable()
.ClientEvents(events =>
{
events.OnRowSelected("RowSelect");
})
//detailview goes here
%>
detailview code:
.DetailView(details => details.ClientTemplate(
Html.Telerik().Grid<GroepDTO>()
.Name("groupSublistView_<#= extID #>")
.DataBinding(dataBinding => dataBinding.Ajax()
.Select("GroupList", "Group", new { extId = "<#= extID #>" }))
.Pageable()
.Sortable()
.ClientEvents(events =>
{
events.OnRowSelected("RowSelectGroup");
})
.ToHtmlString()
))