Hello,
I have a few issues with how filter editor behaves when inline operator and allowFilterExpressions enabled. All tested on https://www.smartclient.com/smartcli...OperatorFilter (v12.0p_2018-06-07).
Bug 1
Inconsistent bahavior of clearing expression field after operator change.
1. Set Capital filter to is blank - filter value is set to empty with allowFilterExpressions=false and left with allowFilterExpressions=true. Ok, seems like changing operator diesn't make me lose my entered expression.
2. Make sure there is a value in Capital filter field. Change operator to default - filter value is always set to empty.
When I use allowFilterExpressions expression was retained in 1., so it should be retained when I switch operators in 2.
Another use case:
1. Change operator of Area to is blank.
2. Enter expression: ">100" and press enter.
3. Filter is applied but expression is cleared from input field.
Bug 2
Inconsistent application of filterOnKeypress. Set allowFilterExpressions: true, filterOnKeypress: true and:
1. Change "p" in Capital filter to "h" (ok - filter applied)
2. Change operator to starts with (bad)
3. Change value to "o" - filter is still not applied (bad)
4. Add another "o", to have "oo". Now filter is applied. (ok)
5. Change value back to "o" - filter should be applied, but it doesn't happen. (bad)
6. Change value to "" - now filter gets applied. (ok)
7. Change operator to is not blank - grid reloads, so it applies filter. Changing to is blank also applied filter. (ok)
I have a few issues with how filter editor behaves when inline operator and allowFilterExpressions enabled. All tested on https://www.smartclient.com/smartcli...OperatorFilter (v12.0p_2018-06-07).
Bug 1
Inconsistent bahavior of clearing expression field after operator change.
1. Set Capital filter to is blank - filter value is set to empty with allowFilterExpressions=false and left with allowFilterExpressions=true. Ok, seems like changing operator diesn't make me lose my entered expression.
2. Make sure there is a value in Capital filter field. Change operator to default - filter value is always set to empty.
When I use allowFilterExpressions expression was retained in 1., so it should be retained when I switch operators in 2.
Another use case:
1. Change operator of Area to is blank.
2. Enter expression: ">100" and press enter.
3. Filter is applied but expression is cleared from input field.
Bug 2
Inconsistent application of filterOnKeypress. Set allowFilterExpressions: true, filterOnKeypress: true and:
1. Change "p" in Capital filter to "h" (ok - filter applied)
2. Change operator to starts with (bad)
3. Change value to "o" - filter is still not applied (bad)
4. Add another "o", to have "oo". Now filter is applied. (ok)
5. Change value back to "o" - filter should be applied, but it doesn't happen. (bad)
6. Change value to "" - now filter gets applied. (ok)
7. Change operator to is not blank - grid reloads, so it applies filter. Changing to is blank also applied filter. (ok)
Comment