For the jsgrid.field.text, when the user does not search for this column, the filter still contains the default value ("" = empty string).
My proposal is to modify the filterValue function into:
filterValue: function() {
return this.filterControl.val() !== "" ? this.filterControl.val() : undefined;
}
When do value is entered, this will return undefined.
Same as in the CheckboxField code:
filterValue: function() {
return this.filterControl.get(0).indeterminate ? undefined : this.filterControl.is(":checked");
},
Same for the jsgrid.field.number, the default value contains a integer 0 when the user does not search on this.
But if this change breaks the implementation, it's maybe better to add a property named filterValueHasValue like this:
filterValueHasValue: function() {
return this.filterControl.val() !== "";
},
For the jsgrid.field.text, when the user does not search for this column, the filter still contains the default value ("" = empty string).
My proposal is to modify the filterValue function into:
When do value is entered, this will return undefined.
Same as in the CheckboxField code:
Same for the jsgrid.field.number, the default value contains a integer 0 when the user does not search on this.
But if this change breaks the implementation, it's maybe better to add a property named filterValueHasValue like this: