How to set Excel Like Filtering pop-up menu width

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

    Posted 04 Jan 2018 Link to this post

    PROJECT DESCRIPTION

    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
    161 posts
    Member since:
    Jan 2005

    Posted 24 Dec 2018 Link to this post

    Hi,

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

    Thanks

    Alex

  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.
  4. Tonya
    Tonya avatar
    14 posts
    Member since:
    Mar 2008

    Posted 21 Jan in reply to Marin Bratanov Link to this post

    How can we adjust the width of the filter menu when the grid is in a user control. OnPreRenderComplete isn't an available event in user controls. 
Back to Top

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