This is a migrated thread and some comments may be shown as answers.

Data Tools Filter customization

4 Answers 290 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matej
Top achievements
Rank 1
Veteran
Matej asked on 12 Feb 2020, 01:40 PM

Hi,

I wan to use your Data Tools Filter component but I need to customize filter items. Each item has a field dropdown, operator dropdown and filter value. My problem is that I have a 50+ fields and the field dropdown is impractical in this situation.

1. Is it possible to replace field dropdown with custom component? e.g. kendo ComboBox?

2. Is it possible to customize field dropdown Popup?

3. Is it possible to open a custom component (e.g. dialog) on "Add Expression" click?

4. There is defaultGroupFilter prop used with Add Group button. Is it possible to customize default field/operator/value for the "Add Expression" button?

4 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 13 Feb 2020, 08:45 AM

Hello, Matej,

Regarding the questions:

1) Yes, the filter component can be replaced with a custom one:

https://stackblitz.com/edit/react-cdseqi-62gdp2?file=app/main.jsx

2) Currently, only the text of the items can be changed using the label prop:

https://www.telerik.com/kendo-react-ui/components/datatools/api/FieldSettings/#toc-label

3) This can only be achieved by programmatically subscribing to the click event of the button. Still, this will add the new expression in the tree. Please share more details about this use case, so we can see if we can offer something or log a feature request.

4) This is determined by the order of the items in the fields collection. If a specific field has to be shown when the add description button is clicked, then set this field to be the first one in the fields collection.

 

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Matej
Top achievements
Rank 1
Veteran
answered on 13 Feb 2020, 09:03 AM

1) I want to replace the field dropdown (first dropdown) not the filter component

2) no more questions

3) This was just an idea. "Add Expression" click would open a popup with a list of all 50+ fields where I could choose a specific one.

4) no more questions

0
Stefan
Telerik team
answered on 14 Feb 2020, 06:20 AM

Hello, Matej,

Regarding the remaining questions 1 and 3 - we agree that they both sound as interesting customization options.

I have created a feature request for them:

https://feedback.telerik.com/kendo-react-ui/1453741-add-the-ability-to-customize-the-filter-component-elements

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Matej
Top achievements
Rank 1
Veteran
answered on 14 Feb 2020, 09:23 AM
Thank you.
Varunkumar
Top achievements
Rank 1
commented on 24 Jan 2024, 06:27 AM

Hi @Matej, Can you please address this issue #1 ? We are facing the similar issue.
Tags
General Discussions
Asked by
Matej
Top achievements
Rank 1
Veteran
Answers by
Stefan
Telerik team
Matej
Top achievements
Rank 1
Veteran
Share this question
or