Signalr + Grid Detail Auto Collapsing

2 posts, 0 answers
  1. Paito
    Paito avatar
    4 posts
    Member since:
    Mar 2017

    Posted 12 Apr 2017 Link to this post


    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?

        .Columns(columns =>
            columns.Bound(p => p.Column1);
            columns.Bound(p => p.Column2);
        .Scrollable(s => s.Height("auto"))
        .DataSource(dataSource => dataSource
            .Events(events => events.Push("onPush"))
            .Sort(s => s.Add("Posted").Descending())
            .Transport(tr => tr
                .Client(c => c
                .Server(s => s
            .Schema(schema => schema
                .Model(model =>
                    model.Field("Column1", typeof(string));
                    model.Field("Column2", typeof(string));

    <script id="template" type="text/kendo-tmpl">
                .Animation(animation => animation.Open(open => open.Fade(FadeDirection.In)))
                .Items(items =>
                        .LoadContentFrom("Detail", "Home", new { ID= "#=ID#" })



  2. Stefan
    Stefan avatar
    3008 posts

    Posted 17 Apr 2017 Link to this post

    Hello Paito,

    This can be achieved only with a custom logic to persist the expanded rows, and then to manually expanded them once the new data is set.

    I can suggest checking the following example demonstrating this. The example is using a button to simulate refresh, but a similar logic can be used when a new data is set and the Grid is rebound:

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top