开发者

Is there a way to implement ajax search with dojo data grid component?

开发者 https://www.devze.com 2023-04-02 03:32 出处:网络
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?

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.

Is there a way to implement ajax search with dojo data grid component?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消