View Full Version : GXT ListFilter does not show unique values in the list
I am using GXT 2.2.5 and IE 8
I am using ListFilter to one of the columns in the grid. The column has around 100 rows of data. Out of which the number of unique values are only 3. I expect list filter to show only 3 unique values in the options to select but it shows me all 100 with duplicate values. How can i force the list filter to show only unique values in the options.
Please let me know.
Works fine for me without any problems in this example: http://www.sencha.com/examples/#filtergrid
Y (http://www.sencha.com/examples/#filtergrid)ou will need to give us a fully working testcase implementing EntryPoint that shows your problem.
Thank your for a very quick response Sven.
Well, in this example I found that the values to display in the filter are defined in the view.
I want to have the filter functionality defined on the server side. So, is there a way i can define the filter that will display a set of unique value dynamically?
My client side code for the filter is as below:
GroupingStore<ModelData> store = new GroupingStore<ModelData>(loader);
ListFilter listFilter = new ListFilter("reveune", store);
T (http://www.sencha.com/examples/#remotefiltergrid)his example uses remote filtering. However all the values to choose from are stored on the client side. The actual filtering is serverside.
Yes Sven, i was working on the same example and trying to fit out requriement.
We wanted more like an excel kind of feature were the values that show up in the filter are determined dynamically based on the values that are present in the column. We would want to avoid storing and defining the values in the client side.
I guess this functionality will not be available for us out of the box from GXT.
I see one way of achieving this functionality is to have a separate server call to get the unique list of values for the column and add them to the listFilter in the client side.
Do you have any other suggestions?
22 Dec 2011, 10:35 AM
my situation is similar, I passed a store to a Listfilter and the store contains thousands of rows with duplicate values, I prefer listFilter can only show those unique values in filter list. does GXT provide this feature or when can Gxt add this feature?
22 Dec 2011, 11:50 AM
So, the way i solved my problem was, i made a separate server call to fetch a unique list of values that has to be displayed in the list filter and set those values to the list filter..
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.