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

3 posts, 1 answers
  1. Answer
    Shawn
    Shawn avatar
    2 posts
    Member since:
    Jun 2013

    Posted 09 Jul 2013 Link to this post

    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. Shawn
    Shawn avatar
    2 posts
    Member since:
    Jun 2013

    Posted 10 Jul 2013 Link to this post

    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"); })

  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Javier
    Javier avatar
    10 posts
    Member since:
    Jun 2013

    Posted 18 Aug 2013 Link to this post

    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
Back to Top