Resize GridColumnMenuCheckboxFilter

2 Answers 117 Views
Grid
Dan
Top achievements
Rank 1
Dan asked on 17 Oct 2023, 08:27 AM

Hi there,

I have a Kendo React Grid with a GridColumnMenuCheckboxFilter. Some of the values can get out of hand long, which push the filter dialog width out too far. Is it possible to set a width limit?

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 19 Oct 2023, 05:25 AM

Hello Dan,

Although that there is no direct way of setting the width of the filter container in the column menu, you can use the following CSS to set explicit width:

            <style>
                .k-filter-menu-container {
                    width: 300px; 
                }

Following is a simple example with the above override:

Hope this helps.

 

Regards,
Konstantin Dikov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Dan
Top achievements
Rank 1
commented on 19 Oct 2023, 07:46 AM

Thank you very much!
David
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 17 Feb 2025, 02:19 AM

Hi,

This solution no longer works. I updated your example above with KendoReact v8.5.0 and increased the width of the filter container: https://stackblitz.com/edit/react-ffjekt-rkbdsbtm?file=index.html

The css here produces similar results: https://docs.telerik.com/kendo-ui/knowledge-base/increase-the-width-of-the-filter-menu

Is it still possible to set the width of the GridColumnMenuCheckboxFilter?

Kind regards,

David

0
Yanko
Telerik team
answered on 18 Feb 2025, 04:29 PM

Hello, Dan,

The structure of the column menu has changed and also a new min-width rule was added to the styles coming from the theme. You can use a different selector to achieve the same behaviour as before disabling the min-width rule and applying the desired width:

            .k-column-menu-popup.k-popup, .k-grid-columnmenu-popup.k-popup {
                max-width: none;
                width: 400px; 
            }

I prepared an example demonstrating the above approach:

Please let me know if additional inquiries arise.

Regards,
Yanko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Dan
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Yanko
Telerik team
Share this question
or