-
12 Oct 2010 5:44 AM #1
[OPEN-1319] Ext.ux.grid.filter.ListFilter doesn't support number lists
[OPEN-1319] Ext.ux.grid.filter.ListFilter doesn't support number lists
In Ext Js 3.2.0 the ListFilter does not work if the data in the store is typed as a number.
The symptom is that when a user applies any filter at all to the column, then all records are filtered out.
This is due to the validateRecord function:
It uses indexOf against an array of Strings (containing string representations of the numbers) but passes a 'number' from the record.Code:validateRecord : function (record) { return this.getValue().indexOf(record.get(this.dataIndex)) > -1; }
The simple fix for this is to always convert the parameter passed to indexOf into a string:
Now the ListFilter works as expected with Strings and numbers.Code:validateRecord : function (record) { return this.getValue().indexOf(record.get(this.dataIndex)+'') > -1; }
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[OPEN-766][3.2-beta] DataViewTransition doesn't support empty store
By killfill in forum Ext 3.x: BugsReplies: 8Last Post: 10 Feb 2011, 5:37 PM -
Ext.ux.grid.filter.ListFilter -> loaded store
By tobiu in forum Ext 2.x: User Extensions and PluginsReplies: 2Last Post: 31 Mar 2009, 2:23 AM -
Error: Object doesn't support this property or method number: -2146827850
By pillindra in forum Community DiscussionReplies: 0Last Post: 13 Aug 2008, 3:58 PM


Reply With Quote