How to set Excel Like Filtering pop-up menu width

Thread is closed for posting
4 posts, 0 answers
  1. D41B02FE-0EF9-48A6-9B2C-E910424294F5
    D41B02FE-0EF9-48A6-9B2C-E910424294F5 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. C111A539-8444-4907-A8FB-B80B7476D947
    C111A539-8444-4907-A8FB-B80B7476D947 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. 17C4803E-4A85-4E3B-AF23-85DE2CAC2669
    17C4803E-4A85-4E3B-AF23-85DE2CAC2669 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. 5F4CFA57-A14B-4785-8D92-3DE8A5CB4092
    5F4CFA57-A14B-4785-8D92-3DE8A5CB4092 avatar
    14 posts
    Member since:
    Mar 2008

    Posted 21 Jan 2021 in reply to D41B02FE-0EF9-48A6-9B2C-E910424294F5 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.