Ng1 ui-router and kendo grid $destroy

时间:2017-07-12 08:14:03

标签: angularjs kendo-grid

In the AngularJS SPA application I use Kendo grid and application uses the ui-router for routing. On the web site is a hierarchical Kendo grid with 100 rows (server filtering and paging). When I clicked a grid row to go to profile page ui-router waits approx. 6-7s to destroy Kendo grid. It looks like a lot of time. Is it possible to postpone the $destroy event so that the user goes to another page and thereafter $destroy event occurs? Or there is some workaround?

I know this is not a problem because it prevents memory leak, but it looks a lot of time.

1 个答案:

答案 0 :(得分:0)

我通过禁用kendo网格中的过滤器行解决了这个问题。过滤器行中的列和过滤器太多会减慢网格破坏。首先渲染网格而不使用过滤器,然后如果需要过滤,用户可以使用过滤器加载网格。