It's not a secret anymore!*
The moose likes HTML, CSS and JavaScript and the fly likes Dojo Datagrid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dojo Datagrid" Watch "Dojo Datagrid" New topic
Author

Dojo Datagrid

Sudipta Laha
Ranch Hand

Joined: Aug 23, 2010
Posts: 49
Hi,

For a dojo datagrid we can do grid.filter({ID:"*ss*"}); to filter data having SS in the 'ID' column, This is specific to a column.

Is it possible to do it for the whole table without specifying the column name or with 2 columns with a 'OR' condition in between.


Regards,
Sudipta Kumar Laha
Sudipta Laha
Ranch Hand

Joined: Aug 23, 2010
Posts: 49
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dojo Datagrid