This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes is there data grid table with filtering , paging , and export function in JSP ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "is there data grid table with filtering , paging , and export function in JSP ?" Watch "is there data grid table with filtering , paging , and export function in JSP ?" New topic
Author

is there data grid table with filtering , paging , and export function in JSP ?

alsoumahi alBatal
Ranch Hand

Joined: Nov 22, 2009
Posts: 94
Hi experts , I really worked hard to find one way for data grid table in jsp , what I want to do is to create a table like excel with header filter and also that table has paging option
I have done the filtering and paging using extJs 4 , I have used and it is working fine with me , but its problem with the filtering option , it just only filters in one page set not in all data of the table
for example let say you have a data grid like this

http://dev.sencha.com/deploy/ext-4.0.0/examples/grid-filtering/grid-filter-local.html

let say this grid table in two pages , and you filter by size and you choose large , the result will be only showing for that page either 1 or 2 , not for all data set to show you all large size of all table ( it will only show large size in either page 1 , or page 2 )

another question , if I filter based on what I need then if I want to export that filtered table in excel , how can I do that


thanks a lot
N Sahni
Ranch Hand

Joined: Jul 07, 2011
Posts: 55

Hi,

Please refer to EXT-JS doc http://docs.sencha.com/ext-js/4-1/#!/api/Ext.ux.grid.FiltersFeature-cfg-local

The config parameter local should be false, so that it will make a server call for each filter.
There is a paramPrefix were we can set the paramerter which will be passed to the server for filterring.

Regarding your 2nd question, you can use current grids store which holds the filtered data for exporting. Store has relevant functions to get the data.


Thanks and Regards,
Nilesh Sahni | nsahni@infocepts.com | www.infocepts.com
alsoumahi alBatal
Ranch Hand

Joined: Nov 22, 2009
Posts: 94
thanks , but is there good tutorial explaining extjs from basics , I have tried sancha website documentation , it is really difficult for beginner to start with , it is confusing ....
any pdf tutorial or book will be preferred

thanks a lot
 
GeeCON Prague 2014
 
subject: is there data grid table with filtering , paging , and export function in JSP ?