mary
April 2, 2009, 11:26am
1
I want to change the filterData and I use AddProperty:
isc.ListGrid.addProperties({
filterData : function(criteria,dsrequest,property){
property.sortBy = "-fecAlta";
return this.Super("filterData", arguments);
}
});
In Explorer works fine but in Firefox I get the following error in console:
_6 is null
var _6=this.$286.getItem(_4),_7=_6.getSt...f(_5){this.$286.setFieldErrors(_4,null)}
ISC_Grid...on=6.0.js (línea 941)
The mistake is at line 941 File “ISC”
Anybody can help me?
If you want to do something like that, subclass the ListGrid , don’t just addProperties on the existing ListGrid class - that actually replaces the built-in filterData implementation.
However what you’re trying to do seems similar to just setting an initial sortField.
mary
April 2, 2009, 9:22pm
3
isc.ListGrid.addProperties({
filterData : function(criteria,dsrequest,property){
criteria.name = "Aurora";
return this.Super("filterData", arguments);
}
});
Is this code correct?
I want to filter by “name” column and the values of filterEditor , but not working in firefox.
Help me, please!!!
Still wrong and for the same reason. Please see previous post.