Fix TreeGrid critical performance issue.

Moved selection sync from the render method to constructor to prevent
calls stacking.