Eradicate Redundant Filters in React's Kendo Grid

We have a basic read-only React grid with standard Kendo filters on each column, but we want to avoid having duplicate filters.

Grid code

                        sortable
                        pageable={this.state.pageable}                      
                        data={this.state.queuedData}
                        sort={this.state.sort}
                        filter={this.state.filter}
                        onFilterChange={this.handleFilterChange}
                        onSortChange={this.handleSortChange}
                        onPageChange={this.handlePageChange}
                        total={this.state.total}
                        skip={this.state.skip}
                        pageSize={this.state.pageSize}                       
                        resizable>                   
                    <GridColumn field="entity" title="Entity" sortable={true} columnMenu = {ColumnMenu}/>
                    <GridColumn field="name" title="Name"  sortable={true} columnMenu = {ColumnMenu}/>
                    <GridColumn filter="date" field="changedDate" title="Change Date"  sortable={true} 
                    columnMenu = {ColumnMenu}
                    cell={this.CustomCell}/>

ColumnMenu Component code

import React from 'react';
import {
    GridColumnMenuFilter
} from '@progress/kendo-react-grid';

export class ColumnMenu extends React.Component {
    render() {
        return (
            <div>
                <GridColumnMenuFilter {...this.props} expanded={true}/>
            </div>
        );
    }
}

The current outcome looks like this :

https://i.sstatic.net/Eoj7N.png

However, we would prefer it to look more like this :

https://i.sstatic.net/TZWQm.png

If you have any suggestions on how we can achieve this, please let us know.

Answer №1

<GridColumnMenuFilter {...this.props} hideSecondFilter option={"expanded"} value={true}/>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Tips for establishing optimal parameters for an object's dynamic property

I am working with an array of objects: export const inputsArray: InputAttributes[] = [ { label: 'Name', type: 'text', name: 'name', required: true }, { label: 'User name ...

Updating the hyperlink of an html element using css

I am looking to update this A tag <a href="contact.html" >Contact</a> to <a href="tel:+13174562564" >Contact</a> using only CSS, if possible. Alternatively, like this <a href="tel:+13174562564" >+13174562564</a> ...

Tips for implementing a unique design within a nested component using NextJS App Router

https://i.stack.imgur.com/EaYOG.png Here is the structure of my app router: The root layout must be shared with everyone. However, within the login component, there is another layout.jsx that should not share the root layout but override it and use the l ...

What causes the menu icon to shift to the left upon clicking it?

I'm currently working on a website project that involves implementing a fixed navbar with jQuery sliding animation for the menu. However, I've encountered an issue where the "menu_icon" is getting pushed to the left every time the menu slides dow ...

How come I am unable to showcase my films using React JS?

I'm encountering issues with my movies app code. The error message I'm seeing is " ./src/App.js: 'MovieList' is not defined react/jsx-no-undef" I need help identifying the problem. Can someone assist me? Thank you! Here is ...

Having trouble accessing array elements in react components

When retrieving JSON data for a single student from the server in my React application, I am able to access this.state.info.Firstname but encountering difficulty accessing this.state.info.Father.Firstname. How can I access this information? This is my Rea ...

Retrieve a designated text value from a Promise

I have developed a React/Next.js application that utilizes what3words to assign items to specific locations. The code I've created processes the what3words address, converts it into coordinates, and is intended to display the location on a Mapbox map. ...

Generate a series of inquiries from an API response and display them dynamically, complete with a text field and radio button for each question

Currently, I am in the process of developing a Question/Answer page using ReactJS. The questions are retrieved through an API call. I aim to present a series of radio buttons and text fields for users to respond to these questions. A "Panel" that resemble ...

Options chosen will vanish in a multi-select drop-down tag with a scroll bar in HTML

I need assistance with my multiple drop-down select tag issue. .CustomStyle { overflow-x: scroll; width: 16%; } <select multiple size="5" class="CustomStyle"> <option>Option 1</option> <option>Option 2</option> &l ...

Tips on incorporating a scrollbar into a table using PHP?

I need help figuring out how to add a scroll function to my table that is generated in a PHP file. I prefer not to implement the scroll feature in a separate style.css file, I want it to be directly embedded in the PHP file itself. Below is the code I ha ...

What are the best practices for efficiently updating JSON data in a React application?

My objective is to perform CRUD operations on a JSON object stored in the state, whose structure is not fixed, but rather dynamic and subject to change. To display this JSON structure, I am utilizing a recursive functional component that keeps track of th ...

Material-UI Masonry: Eliminate excess spacing on the right side

When utilizing Material-UI, I encountered an issue where the width of the Masonry Component does not completely fill the width of its parent container. The empty space left has a width exactly equal to the spacing between elements, which is understandable ...

What is the reason behind `tslint` flagging `TS2531: Object may be null` even though I verified its existence beforehand?

In my React project, I am utilizing typescript. The following code snippet is part of my typescript implementation: if(this.state.deletedItem !== null) { this.props.deleteItem({refItemIdx: this.state.deletedItem.itemIdx}); } ...

Prevent global CSS from being overridden in a production environment for a React Next.js application

Being new to REACT-NEXT and coming from an Angular background, I am struggling with fixing this issue. Here is the element I am using from another resource: import example-custom-ele-parent, {example-custom-ele-child} from 'custom-tags/example-custom& ...

Strange occurrence with Bootstrap when the screen width is less than 480px

My website is working perfectly on desktop and larger screens, but when I try to view it on screens smaller than around 480px, the body width seems to shrink down. The issue worsens as the screen size decreases. You can see an example screenshot here: htt ...

I am currently working with NextJs and Auth.Js version 5. Can anyone provide guidance on how to efficiently retrieve the access_token upon signing in, allowing for seamless API calls to be made thereafter

After successfully signing in using a custom credentials provider in NextAuth.Js v5, I am facing an issue where obtaining the full access token for further API calls is not possible. It seems that only a partial token is returned for security reasons. Howe ...

V5 Modal & jQuery: troubleshooting the spinner problem during loading of content

I'm working on displaying a spinner while loading modal content with the use of bootstrap v5 modal and jQuery. However, I encountered some issues in my example. The spinner does not display again after closing the modal; it only shows for the first t ...

What is the method to alter the background color of a whole row in a data table once the checkbox has been checked using CSS in JSP?

Here is the JSP page code snippet: <p:column selectionMode="multiple" exportable="false" style="text-align:center;"> </p:column> <p:ajax event="rowSelectCheckbox" update="deleteButton"/> <p:ajax event="rowUnselectCheckbox" update= ...

React implementation of an onClick event for Cruise List Heading functionality

Currently, I am dedicating my spare time to developing a website about cruise ships using React. You can find a working version on my Reviews branch here. One aspect that I am eager to change is the display of the Cruise Lines Page. My goal is to have pro ...

Issue with C# CSS Asp navigation bar

I have created a menu with a submenu that is causing layout issues on my site. Here is the code snippet for the menu in the site master: <div id="menu"> <h2> Dashboard</h2> <asp:Menu ID="NavigationMenu" dir="rtl" runat ...