diff --git a/examples/example-grid-menu.html b/examples/example-grid-menu.html index 31c7a17b..ae31d22c 100644 --- a/examples/example-grid-menu.html +++ b/examples/example-grid-menu.html @@ -44,6 +44,7 @@

Demonstrates:

  • Optional title for the columns list (bottom section)
  • To dismiss the Grid Menu, user can click on the "x" on top right corner or anywhere outside of the Grid Menu
  • Possibility to attach the Grid Menu to an external button (try clicking on the button below).
  • +
  • You can also use some events like "onMenuClose()" and to trigger a resize of the columns with "autosizeColumns()" when "forceFitColumns: false"
  • @@ -84,7 +85,7 @@

    View Source:

    showHeaderRow: true, headerRowHeight: 30, explicitInitialization: true, - forceFitColumns: true, + forceFitColumns: false, alwaysShowVerticalScroll: true, // this is necessary when using Grid Menu with a small dataset // gridMenu Object is optional @@ -240,6 +241,7 @@

    View Source:

    // subscribe to event when menu is closing gridMenuControl.onMenuClose.subscribe(function(e, args) { console.log('Menu is closing'); + grid.autosizeColumns(); }); })