This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

Dojo Datagrid

Sudipta Laha
Ranch Hand

Joined: Aug 23, 2010
Posts: 49

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.

Sudipta Kumar Laha
Sudipta Laha
Ranch Hand

Joined: Aug 23, 2010
Posts: 49

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Dojo Datagrid
jQuery in Action, 3rd edition