Get Text Value of FilterMenu

1 Answer 59 Views
Gantt Grid Menu
Madelin
Top achievements
Rank 1
Madelin asked on 12 Jul 2021, 08:50 PM

How do I get the value of a FilterMenu?

Code example:

$("#filter-menu").kendoFilterMenu({
dataSource: dataSource,
field: "title",
extra: false,
});

1 Answer, 1 is accepted

Sort by
0
Accepted
Neli
Telerik team
answered on 15 Jul 2021, 09:07 AM

Hi Madelin,

You could subscribe to the filterMenuOpen event of the Grid. When the filter menu gets opened, you could find the needed input element and check its value using jQuery val(). In the Dojo example linked here, when the filterMenu is opened a keyup event is bound to the inputs in it. When the user types, the value is console logged.

filterMenuOpen: function(e) {
    e.container.find('.k-filter-menu-container input').on('keyup', function(){
    		console.log($(this).val())
    })
  },

I hope this helps.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Gantt Grid Menu
Asked by
Madelin
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or