tradingtechnologies/SlickGrid — pull request #5 by TJ-Han (2014-07-23 19:31:46+00:00)
Title: feature/DEB-6741-Slickgrid-Changes

@sergiopereiraTT and @kzhdev Please review. Thank you. A new PR will come soon with NTW less files changes.

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