Is there a way to implement ajax search with dojo data grid component?
I am using dojox.grid.DataGrid and dojo.data.ItemFileWriteStore to render a grid. I want to implement a record search. Is there any way to do this?
After loading the page someone can search through the 'search form' above the grid. when the search button is pressed it will refresh/reload the grid data ret开发者_JAVA百科urned from the server according to the form values.
Please check the illustration.
You need to apply the filter() method on the DataGrid instance. Here you'll find the exact answer to your problem: http://dojotoolkit.org/reference-guide/dojox/grid/DataGrid.html#filtering-data
精彩评论