Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Can I get a numerical expression filter to NOT match NULL values by default?

$
0
0
I've enabled the expression filter:

Code:

    isc.ListGrid.create({
      ID: "chemicalsList",
      alternateRecordStyles: true,
      autoFetchData: true,
      dataSource: chemicals,
      showFilterEditor: true,
      allowFilterExpressions: true,  // <-----
      filterOnKeypress: true
    });

When I type in a numerical comparison such as "<10", it displays rows that have a value in that column which is less than 10, AND it includes rows which have NULL in that column.

What I want is to include ONLY rows that match the criteria entered.

A filter expression of "<10 and !#" (less than ten and not null) does the comparison I'm looking for... what I want is for my user not to have to enter the "and !#" part.

Is this possible?

Happy to subclass and write some custom code if that's the way to do it.

Thanks!

Andrew


SmartClient version: v10.0p_2015-04-05/EVAL Development Only

Browser version: FireFox 37.0.1

Viewing all articles
Browse latest Browse all 4756

Trending Articles