Kendogrid columnMenu does not show initial filter

1 Answer 87 Views
Grid
Giovanni
Top achievements
Rank 1
Iron
Iron
Iron
Giovanni asked on 08 Apr 2022, 10:33 AM

Hi,

I want to set an initial filter to my grid like in the sample (where initial filter is: ProductName contains Chef):

https://www.telerik.com/kendo-react-ui/components/grid/filtering/#toc-custom-filter-operators

But I want to use columnMenu fitlers, like the example:

https://www.telerik.com/kendo-react-ui/components/grid/filtering/#toc-column-menu-filter

So, I downloaded the example from the second link and changed initialState as follows:

  let initialState = createDataState({
    take: 8,
    skip: 0,
    filter: {
      logic: "and",
      filters: [{
        field: "ProductID",
        operator: "neq",
        value: 4
      }]
    }
  });

 

It works fine, the grid starts filtering out the product with ID 4, but if I open the filter it is empty:

 

 

How can I right initialize the columnMenu filter??

Thank you

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 11 Apr 2022, 07:56 AM

Hello,

I can suggest checking the following forum thread on a similar subject. We have provided there an example as well:

https://www.telerik.com/forums/how-to-apply-initial-value-of-gridcolumn---gridcolumnmenufilter

Regards,
Stefan
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
Giovanni
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Stefan
Telerik team
Share this question
or