Width settings for the Excel-like filtering context menu have not been exposed as it does not have a provision for changing its size.
Nevertheless, a CSS override can change the menu elements width. This may not suit all use cases, and cannot be really dynamic because the width comes from CSS rules.
Here are the key points:
- The OnPreRenderComplete event is used to add a CSS class to the menu.
- The RenderMode is Lightweight because it allow for more CSS customizations.
- A dozen lines of CSS override the built-in menu settings so that they set the width to a hardcoded value (500px in the sample).