How to set Excel Like Filtering pop-up menu width

3 posts, 0 answers
  1. Marin Bratanov
    Marin Bratanov avatar
    23 posts
    Member since:
    Jul 2012

    Posted 04 Jan 2018 Link to this post


    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).


  2. Alex Dybenko
    Alex Dybenko avatar
    159 posts
    Member since:
    Jan 2005

    Posted 24 Dec 2018 Link to this post


    do you have a similar sample for CheckList Filtering (FilterType="Combined")? I would like to change width of ListBox control with predefined values.



  3. E J
    E J avatar
    2 posts
    Member since:
    Jun 2012

    Posted 08 Jul 2019 Link to this post

    Old post but very useful for our situation.  I have a question however, this works in "Lightweight" rendering mode only.   In lightweight, the font sizes of our grids are considerably larger than in classic mode.  Is there a way to correct this?   Thank you.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.