Hi
I got a solution for the above issue. So i thought to post it here so that it may be helpful to some people.
Instead of using a data grid we can use dojo's enhanced datagrid.
Enhanced data grid contains the plugin for filter. With the use of the filter plugin we can search multiple columns for same or multiple data
To set a filter
to remove a filter
To search data on multiple columns we can use [column: 'anycolumn'] .
This js script can be called from any search box or any other button.
Hope it will help.