Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dojo Datagrid

 
Sudipta Laha
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sudipta Laha
Ranch Hand
Posts: 49
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic