This is a migrated thread and some comments may be shown as answers.

[Solved] How can I keep rows expanded in a Kendo UI Grid with n-level hierarchy?

1 Answer 286 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 15 Oct 2014, 10:44 PM
I have a Kendo UI Grid that has n-levels of hierarchy that's based on this solution here: http://stackoverflow.com/questions/24004905/kendo-ui-grid-multi-level-hierarchy-n-levels-of-hierarchy . I have buttons inside the rows that need to update some table data, but every time i make it refresh() or read(), the table closes the hierarchy.here is the update function, if needed:

function updateStatus(uN, tId, isSub, tAct, lN) {
    $.ajax({
        url: "supersecretwebsite.com",
        type: "POST",
            success: function (a) {
                $("#LoanTasksTop").data("kendoGrid").dataSource.read();
                $("#LoanTasksTop").data("kendoGrid").refresh();
            }
     });
}

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 17 Oct 2014, 03:17 PM
Hello Craig,

The grid itself does not persist the expanded state of the items. To keep the levels open, persist the expanded state in some way (cookie, localstorage, remote service). See this SO thread for a solution.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Craig
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or