February 23, 2011

How to add search filter in Grid Panel using EXTJS

To get the search filter in your Grid Panel, do the following steps

1) Add following scripts and css in your html.

<link href="../css/css/icons.css" rel="stylesheet" type="text/css"></link>
<link href="./img/extjs.ico" rel="shortcut icon"></link>
<script src="../javascript/js/Ext.ux.ThemeCombo.js" type="text/javascript">
<script src="../javascript/js/Ext.ux.grid.Search.js" type="text/javascript">

 Add the following code in your Grid Panel as a plugin:

,plugins:[new Ext.ux.grid.Search({
                ,mode:'local' // to filter on local; for remote add mode:'remote'
                ,width: '50'

Download the required css and javascript from here.

For more information check this link:


Anonymous said...


Kuldeep Singh said...

This is nice example ..We are doing the same way but our search is only happening in current page instead of whole set ? ..Please suguest something ..

Nicolas said...

this search is for current page only, if you want to search on whole set then you change the mode given to remote.

Nelson Stuardo Cendra said...


Post a Comment