How to access of value filtered

Hello everyone. 
I have a datagrid with filters. How to get the value inserted by keyboard with a function?

for example. I have a table with products, I go in the column name of filter and i digit: Pizza

How I get the word 'Pizza' by function?
with this it:this.$refs.overviewgrid.getFilterUIInfo()

returns getFilterUIInfo is not a function

If i use:

actionComplete(args) {
      if (args.action === 'filter') {
        // const prova = this.$refs.overviewgrid.getFilterUIInfo()
        // args.currentFilteringColumn -> to get column filtered

}


How I get the word searched in the filter?

thank you


3 Replies

RR Rajapandi Ravi Syncfusion Team May 23, 2022 03:38 PM UTC

Hi Alberto,


Greetings from Syncfusion support


Before we start providing solution to your query, we need more information for our clarification. Please share the below details that will be helpful for us to provide better solution.


1)       Please share what type of Filter (FilterBar/Menu/Excel/Checkbox) you are using in your Grid application.


2)       Please share your requirement scenario in pictorial or video representation.


Regards,

Rajapandi R



AL Alberto May 24, 2022 07:26 AM UTC

Hello everyone,

Thank you for the fast answer.
I'm using the filter type: Menu.
In the screenshot you can see the word inserted.

I want access by code at the word 'Filett' inserted in menu filter. I haven't found any function.
I hope you understund what is say :)


Thank you again.

best regards


Alberto


Attachment: menufilterjpg_d83c8148.zip


RR Rajapandi Ravi Syncfusion Team May 25, 2022 01:09 PM UTC

Hi Alberto,


Thanks for the update.


In your update you have mentioned that you are using Menu type filter but from checking your screenshot we could see that the checkbox filter dialog. So, we suspect that you are using checkbox filter for specific column. You can get the text on the search box by using the below way, so we suggest you use the below way to achieve your requirement. Please refer the below code example for more information.


 

actionBegin(args) { //actionBegin event of Grid

                if(args.requestType == 'filtersearchbegin') {

                    console.log(args.value); //you can get the search text in the argument

                }

                console.log(grid.filterModule.filterModule.checkBoxBase.sInput.value//you can also get the text by executing this

            }

 



Regards,

Rajapandi R


Loader.
Up arrow icon