-
9 Apr 2013 8:06 AM #141
renderExtraColumn seems to fail sometimes after reconfigure is called on the grid 4.2 now. It creates the header fine but the first column is missing so all the columns are shifted one over. If I scroll up and down it fixes itself.
This is with a buffered grid.
Anyone else get this?
-
11 Apr 2013 1:55 AM #142
There is a little bug with date filter.
If you have null/empty date value in the store, during the application of the filter an error will occur:
"Uncaught TypeError: Cannot call method 'getTime' of null"
This can be easily corrected adding a if control before the applyFilters method (FilterBar.js, 666 row) return the item.
Repeated of course for all operators.Code:switch(operator) { case 'eq': filterFn = function(item) { if (column.filter.type == 'date') { var valore = item.get(column.dataIndex); if(valore && valore !== null && valore != "") return Ext.Date.clearTime(item.get(column.dataIndex), true).getTime() == Ext.Date.clearTime(newVal, true).getTime(); } else { return (Ext.isEmpty(item.get(column.dataIndex)) ? me.autoStoresNullValue : item.get(column.dataIndex)) == (Ext.isEmpty(newVal) ? me.autoStoresNullValue : newVal); } }; break;
Steve
-
13 Apr 2013 5:02 AM #143
Using filterbar Ext 4.2.0663 problem
Using filterbar Ext 4.2.0663 problem
Hello,
I'm using FilterBar successfully with Ext 4.1.3 but after upgrading to 4.2.0663 I get an error when loading the grid.
This is a part of the code im using:
And get the next error:PHP Code:Ext.define('sdmDataGridPanel', {
extend: 'Ext.grid.Panel',
forceFit: true,
store: Ext.create('sdmDataStore'),
plugins: [{
ptype: 'filterbar',
showShowHideButton: false,
showClearAllButton: false
}],
id: 'grid',
....
TypeError: result.push is not a function
xt-all-debug.js (row 107050)result.push(item);
Hope somebody can help me..
-
15 Apr 2013 3:45 AM #144
That's probably the same problem reported in the message #134 in this thread (look at the previous page): you probably need to tweak a few lines in the source where there is a call to the function getGridColumns(true): simply remove the argument and it should work.
-
17 Apr 2013 3:44 AM #145
Thanks lelit,
I have been blind i think...
Going to tweak the files...
It works...
-
18 Apr 2013 5:44 AM #146
Thanks for this plugin, it's just what i was looking for.
I have a similar problem as mpete, i can“t populate my comboboxes when the grid store is set to "remoteFilter: true". Should i create a separate store for each combo? I'm just getting started in extjs 4, any example would be appreciated.
Thanks in advance,
Agustin
-
10 May 2013 4:45 PM #147
Initial filters on non-visible columns ignored
Initial filters on non-visible columns ignored
I had an issue where there was a filter applied to my grid store on a column that is not displayed in the grid. The FilterBar plugin was ignoring this initial filter because of this line in the parseInitialFilters() function:
if (filter.property && !Ext4.isEmpty(filter.value) && me.columns.get(filter.property)) {
My fix was to add this inital filter to the me.filterArray even though it didn't satisfy the condition:
me.columns.get(filter.property)
Regards,
Scott Langley
slangley@scharp.org


Reply With Quote