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

Why does Treeview not dynamically refresh in IE10 but does refresh in Chrome?

2 Answers 134 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 09 Jul 2013, 02:36 PM
In out MVC app, we are using a Kendo grid to display/inline edit Department information. We also display a tree view of the Department hierarchy (see below). In Chrome when changes are made to the Department information the tree view dynamically changes, in IE10 this does not occur. We noticed through debugging that in IE10 the "GetDepartmentTree' action is only fired on initial load and is never called again, even when the department page is refreshed. In Chrome this action is fired with each change to the Department information. Any ideas on what we can do to make this more cross-browser compliant?

            @(Html.Kendo().TreeView()
                .Name ("DepartmentTree")               
                .HtmlAttributes(new {@class="dept-treeview"})
                .DataTextField("Name")
                .DataSource(ds => ds
                    .Read(read => read
                        .Action("GetDepartmetsTree", "Administration")
                        .Data("GetParameters")
                    )
                )               
                .LoadOnDemand(false)
            )

2 Answers, 1 is accepted

Sort by
0
Shawn
Top achievements
Rank 1
answered on 10 Jul 2013, 07:12 PM
We found the answer, the problem was actually with the KendoGrid event.  We originally tried calling a ReloadTreeview function when information within the grid changed do to an inline edit. By changing e.Change to e.RequestEnd the ReloadTreeView function was called, now IE updates dynamically.

Was:
    Events(e => { e.Change("ReloadTreeview"); e.Error("GetUpdateError"); })
Now:
    Events(e => { e.RequestEnd("ReloadTreeview"); e.Error("GetUpdateError"); })

0
Dev Team
Top achievements
Rank 1
answered on 19 Aug 2013, 03:19 AM
I'm having the same issue, but I'm using splitters instead of grid. Could you please share your code and how you call the treeview refresh/reload? Chrome works but not IE as well: http://www.kendoui.com/forums/kendo-ui-complete-for-asp-net-mvc/treeview/kendo-treeview-not-updating-remote-data-from-datasource.aspx
Tags
TreeView
Asked by
Shawn
Top achievements
Rank 1
Answers by
Shawn
Top achievements
Rank 1
Dev Team
Top achievements
Rank 1
Share this question
or