PDA

View Full Version : [FIXED] Does not re-set value Ext.ux.grid.filter.DateFilter



palan
18 Oct 2013, 4:17 AM
REQUIRED INFORMATION

Ext version tested:

Ext 4.2.1.883
Browser versions tested against:

Chrome 30.0.1599.101 m
Step 1 (console Chtome). GetValue.
46398

Step 2 (console Chtome). setValue ok.
46399

Step 3
(console Chtome). setValue dont'n work. getValue return old (step 2) values . 46400

Gary Schlosberg
18 Oct 2013, 5:08 AM
Thanks for the report. I see what you are saying -- strange that it allows setting once but not again. Can you please post a simple test case which reproduces this behavior? Thanks.

germanicus
18 Oct 2013, 9:07 PM
Thanks for the report! I have opened a bug in our bug tracker.

germanicus
18 Oct 2013, 9:21 PM
You can use this override:


Ext.define('EXTJSIV-11532.ux.grid.filter.DateFilter', {
override: 'Ext.ux.grid.filter.DateFilter',


setValue: function (value, preserve) {
var key, val;

for (key in this.fields) {
val = value[key];

if(val){
this.getPicker(key).setValue(val);
// keep track of the picker value separately because the menu gets destroyed
// when columns order changes. We return this value from getValue() instead
// of picker.getValue()
this.values[key] = val;
this.fields[key].setChecked(true);
} else if (!preserve) {
this.fields[key].setChecked(false);
}
}
this.fireEvent('update', this);
}
});

palan
19 Oct 2013, 12:20 AM
thanks for the help

geovanni.duarte
21 Nov 2013, 2:32 PM
Hi
I'm creating a dynamic grid panel and works fine, except the DateFilters, when i want to filter at second time, show on console the following error : this.fields[item].menu is null, debugging the javascritp code i found that the menu object in the CheckItem is null after the first filter . I need help, took three days solving this error. thanks. im using sencha 4.1.0.