javascript - JQGRID , get all rows after filtering -


i not able rows { paginated } after filtering jqgrid . tried

  > var mydata = grid.jqgrid('getgridparam', 'data');  var mydata = grid.jqgrid('getrowdata'); 

but first option gives rows , these unfiltered rows. second 1 returns filtered rows first page.

in fiddle example if type test in client columns there 6 filtered results, first option returns 7 records , , second 1 returns 5 records { ie first page}. need show 6 filtered records. results logged in console.

here fiddle

the solution of problem depend on fork of grid use. free jqgrid fork based on jqgrid 4.7 (see readme , wiki additional information). current version of free jqgrid 4.9.

free jqgrid supports lastselecteddata parameter can use instead of data informational need. see the demo.

if have use old jqgrid version , can't update free jqgrid can follow the answer. shows how 1 can "subclass" select method of internal $.jgrid.from class of jqgrid. after subclassing 1 have access required information.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -