Welcome to the React feedback portal. We’re happy you’re here! If you have feedback on how to improve the React, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

I have ColumnMenu injected/enabled in my grids and I noticed that I was getting the following warning on the console:

Module "Resize" is not available in Grid component! You either misspelled the module name or forgot to load it.


After a bit of digging I saw that in Grid.prototype.resizeCheck() that if ColumnMenu is enabled and AutoFit or AutoFitAll menu items exist on it then Resize is a required. Those menu items appear to be defaults and so if you don't load the Resize module then you get the warning on the console and those menu items don't show.

The documentation for "Column Menu" in React doesn't mention this requirement, and in fact the example in the documentation of injecting ColumnMenu doesn't inject Resize and so triggers the warning and the AutoFit/AutoFitAll menu items are not shown.

Example from that page: 

At the very least it's probably worth adding a note to the mention of the AutoFit and AutoFitAll items listed on that documentation page to say they require the Resize module to be injected (and that they won't appear if it isn't).

I think in cases where the ColumnMenu module is injected but Resize isn't then it perhaps should be taken to mean the developer doing so actively did not want the AutoFit/AutoFitAll default menu items included and thus no warning should be shown, but I appreciate your view may be that it's preferable to show the warning in case it was an oversight by the developer. Hopefully by adding a reference to the Resize requirement on the documentation for ColumnMenu then at least it would be easier for a developer to understand why they're seeing that warning.

Note that the documentation for ContextMenu and the example on the ContextMenu documentation page have the same issue - no mention of Resize being required for AutoFit/AutoFitAll and a warning logged to the console if ContextMenu is injected with the default menu item set where Resize is not also injected.