Sep 15, 2014, 1:12 PM
[CLOSED] Workaround with FilterHeader (source, filter empty fields, filter by renderer value)
Hello!
FilterHeader plugin ( https://examples2.ext.net/#/GridPane...ader/Overview/ ) allow to filter rows by each of field.
I have several questions about it.
1) Where can I find the plugin sources?
2) How to filter null values?
Following code doesn't work.
3) There are fields with renderer (ColumnBase.Renderer.Handler = "return value == true ? 'Yes' : 'No';") in some grids. But filter works only on "1, 0, true, false" values. How to make filter work on defined renderer of column?
FilterHeader plugin ( https://examples2.ext.net/#/GridPane...ader/Overview/ ) allow to filter rows by each of field.
I have several questions about it.
1) Where can I find the plugin sources?
2) How to filter null values?
Following code doesn't work.
Ext.net.FilterHeader.behaviour.addBehaviour("string", {
name: "/",
is: function (value) {
return value == "/";
},
getValue: function (value) {
return { value: value, valid: true };
},
match: function (recordValue, matchValue) {
if (!recordValue) {
console.log('r');
return true;
}
return false;
},
isValid: function (value) {
return true;
},
serialize: function (value) {
return {
type: "string",
op: "/",
value: value
};
}
});
Although match function returns true, it can filter empty values of string field, but cannot filter null-values. It looks like somewhere in next functions null values of value are ignored.3) There are fields with renderer (ColumnBase.Renderer.Handler = "return value == true ? 'Yes' : 'No';") in some grids. But filter works only on "1, 0, true, false" values. How to make filter work on defined renderer of column?
Last edited by Daniil; Sep 17, 2014 at 10:53 AM.
Reason: [CLOSED]