We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ej Grid Clear Search


How can I clear Grid tool bar search box on click of a button?

Please let me know.


1 Reply

JK Jayaprakash Kamaraj Syncfusion Team September 21, 2016 10:06 AM UTC

Hi Arun,   
Thank you for contacting Syncfusion support.   
In Grid, we have clearSearching method to clear searching from the grid. Please refer to the below help document, code example and sample.   

<button id="search">Clear Search</button> 
<script type="text/javascript"> 
    $("#search").click(function () { 
        var gridobj = $("#FlatGrid").ejGrid("instance"); 

Else, if you want to clear search text in search, use the below code example,   

<script type="text/javascript"> 
    $("#search").click(function () { 
        $("#FlatGrid_searchbar").val("") // here we can clear search text  
        // FlatGrid is GridID 


Jayaprakash K. 

Live Chat Icon For mobile
Up arrow icon