SitePen / dgrid

A lightweight, mobile-ready, data-driven, modular grid widget designed for use with dstore
http://dgrid.io/
Other
628 stars 295 forks source link

Column hider button is not displayed when dgrid is constructed without a reference to a domNode and is appended to a node later. #1381

Closed eQuorumRayNewman closed 7 years ago

eQuorumRayNewman commented 7 years ago

The problem that I'm having is when dgrid is constructed without a reference to a domNode and is appended to a node later the column hide does not display. To duplicate the problem change the ColumnHider.html test case like this;

grid = window.grid = new (declare([Grid, Keyboard, Selection, ColumnHider]))({
    collection: testStore,
    columns: getColumns()
});
//}, "grid");
document.getElementById("grid").appendChild(grid.domNode);  
eQuorumRayNewman commented 7 years ago

Guess I should have tried the last before reporting this. The fix for issue (#1372) solves this problem also.