mleibman/SlickGrid — pull request #979 by TJ-Han (2014-07-23 19:28:04+00:00)
Title: Feature/deb 6741 slickgrid changes

@sergiopereiraTT and @kzhdev Please review the slick grid changes. There will be another PR soon for the NTW less files changes. Thanks.

The performance issue is caused by the createCssRules function, which gets called at the end of grid initialization. Chrome Timeline shows that it causes 2 seconds delay in opening a new AuditTrail after having opened 10 of them. This function creates a new

. This causes the whole page layout to be recalculated. The more elements there are in the workspace, the more expensive this layout becomes. We tried to move the

, but that did not work, even with scoped style.

The solution we have now is to move all the style rules into each grid element, and do away with the

when the html text is generated. One caveat is that, before, the styles in css file (such as working order cell height) would override the rules in the