Toolbar Search callback event

Is there a callback event where I can receive the entered text when I type in the toolbar search letter, or when I press the search button?


3 Replies

HK Harini Kannan Syncfusion Team August 7, 2023 12:55 PM UTC

Hi hamin,


Based on your query we can receive the entered text from the search toolbar, by implementing the actionComplete event. Through this event, we can retrieve the text using the searchString .We have provided a sample and api link for your reference.

[index.js]

 

actionComplete = {actionComplete}

 

 function actionComplete(args)

    {

        var text = args.searchString;

        console.log(text)

    }


Sample: https://stackblitz.com/edit/react-xjvsxn-rqq8ze?file=index.js,index.html

Api Link:  https://ej2.syncfusion.com/documentation/api/grid/#search


Please let us know if you need any further assistance.


Regards,

Harini k



HJ hamin jeon August 9, 2023 08:36 AM UTC

OK, thank you!



SG Suganya Gopinath Syncfusion Team August 10, 2023 02:58 PM UTC

If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.


Loader.
Up arrow icon