PDA

View Full Version : store filter



prakashkadakol
28 May 2012, 12:55 AM
Hi

I have column with values like 1/21,1/21,1/22,1/22 here i wanted to filter duplicate values ,I just wanted to hide these duplicate values.any idea how to do this.

chramer
28 May 2012, 1:03 AM
wouldn't it be easier to deal with this on the server side or you need all the data?

prakashkadakol
28 May 2012, 3:28 AM
is there any way i can filter out even rows from store ??????

chramer
28 May 2012, 3:37 AM
store.filter([
new Ext.util.Filter({
filterFn: function (item) {
return store.indexOf(item)%2 == 0;
},
root: 'data'
})]);