Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
alsoumahi alBatal
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
alsoumahi alBatal
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic