PDA

View Full Version : how to hide the the rows



r6174
26 Sep 2014, 3:20 AM
can any one please help me out to hide the rows of a grid based on a value of the grid columns...like say i have a column as 'type' and values as 'a' and 'b' i have to hide all the rows whose type is 'a' :-/

willigogs
26 Sep 2014, 3:10 PM
Filter the store attached to the grid :)

r6174
29 Sep 2014, 4:17 AM
Filter the store attached to the grid :)

Thanks @willigogs.... but it does not suits my requirement and i know that i can filter the store and reload the grid...i just want to find all the rows i.e., rowindices, whose value for the column 'type' is 'a' and hide them...by the way i am already hiding some columns based on selection...and now i just want to hide some rows without hitting DB source

willigogs
29 Sep 2014, 5:19 AM
Filtering the store does not require another call to the DB - this simply hides/shows the rows currently held inside the store which match your filter query.

http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.data.Store-method-filter