Hi,
I am currently using a Grid with a SignalR datasource and expandable rows to show a Detail Template, every time a new record is created in the grid from the server (onPush) it collapses any/all detail templates which you may have been viewing. Kinda annoying, any way to resolve this?
@(Html.Kendo().Grid<Models.MyView>()
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.Column1);
columns.Bound(p => p.Column2);
})
.ClientDetailTemplateId("template")
.Sortable()
.Scrollable(s => s.Height("auto"))
.Filterable()
.Pageable()
.Navigatable()
.DataSource(dataSource => dataSource
.SignalR()
.AutoSync(true)
.ServerFiltering(true)
.ServerPaging(true)
.ServerSorting(true)
.ServerAggregates(true)
.ServerGrouping(true)
.PageSize(20)
.Events(events => events.Push("onPush"))
.Sort(s => s.Add("Posted").Descending())
.Transport(tr => tr
.Promise("hubStart")
.Hub("hub")
.Client(c => c
.Read("read")
.Create("create")
.Update("update")
.Destroy("destroy")
)
.Server(s => s
.Read("read")
.Create("create")
.Update("update")
.Destroy("destroy")
)
)
.Schema(schema => schema
.Data("Data")
.Total("Total")
.Aggregates("Aggregates")
.Groups("Groups")
.Model(model =>
{
model.Id("ID");
model.Field("Column1", typeof(string));
model.Field("Column2", typeof(string));
})
)
)
)
<script id="template" type="text/kendo-tmpl">
@(Html.Kendo().TabStrip()
.Name("tabStrip_#=ID#")
.SelectedIndex(0)
.Animation(animation => animation.Open(open => open.Fade(FadeDirection.In)))
.Items(items =>
{
items.Add().Text("Detail")
.LoadContentFrom("Detail", "Home", new { ID= "#=ID#" })
.Selected(true);
})
.ToClientTemplate())
</script>
Thanks!