PDA

View Full Version : Adding filters to LiveGrid?



suresh22446688
21 Jun 2012, 4:37 AM
Hi,
I am using LiveGrid(http://www.sencha.com/examples/#ExamplePlace:livegrid). i want to add filters(http://www.sencha.com/examples/#ExamplePlace:filtergrid). i have added below few lines but data is not filtered. Am i missing any thing here?

GridFilters filters = new GridFilters();
filters.setLocal(true);

StringFilter nameFilter = new StringFilter("column name");
filters.addFilter(nameFilter);

filters.init(liveGrid);
liveGrid.addPlugin(filters);


Thanks!