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

How to hide filter window for custom filter template?

4 Answers 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 16 Dec 2019, 02:02 PM

Hi

I have a custom filter template for a column and it works fine. I would like to hide the filter window as soon as the user clicks the custom "Filter" or "Reset" button. The window automatically hides when we click anywhere else. 

 

How can I close the window grammatically?

 

 

4 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 17 Dec 2019, 09:19 AM

Update : I am not able to edit the original post so I am adding more info here.

The custom filter is added by adding a Custom Column Menu template. I would like to close this Column Menu when the user clicks a button in the Column Menu.

The default Column Menu filter emits "closemenu" to close the menu. 

 

0
Plamen
Telerik team
answered on 18 Dec 2019, 11:24 AM

Hi,

In the custom filter menu you could also emit the 'closemenu' event that will close the column menu as for example it is done in this example - https://stackblitz.com/edit/bfrhsc?file=index.js.

Hope this information will be helpful. If you have further questions or your scenario is somehow different please let me know.

Regards,
Plamen
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
Robert
Top achievements
Rank 1
answered on 18 Dec 2019, 12:22 PM

Hi

Thanks for the reply. 

I already tried emitting "closemenu" but it does not work.

I tried again by emitting "closemenu" and "exit" and it does not work. I checked the Vue dev tools to make sure the events are emitted.

Any ideas?

0
Plamen
Telerik team
answered on 18 Dec 2019, 03:14 PM

Hello,

it is not quite clear what is causing the issue since the functionality worked correctly at my side. Would you please try to update my stackblitz example or try to provide some runnable example with dummy data so we could be able to replicate the issue locally and be more helpful?

I will be looking forward for your reply.

Regards,
Plamen
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
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or