This is a migrated thread and some comments may be shown as answers.

[Solved] custom binding filter in javascript only processing first criteria

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pat
Top achievements
Rank 1
Pat asked on 20 Jan 2011, 02:13 AM
I've built my own query interface and I'm manually setting the grid.filterBy string.  I am using an 'and' between my criteria, but server side is looks like the FilterParser.cs is just processing the first part of my filter. I debugged it and it also looks like it's specifically designed to return an or filter.

This is the string I'm building in javascript:

grid.filterBy="substringof(InvoiceNumber,'32'))~and~substringof(CustomerPONumber,'55'))";

No matter what I do, the server grid command only ever has one FilterDescriptor in it

1 Answer, 1 is accepted

Sort by
0
Pat
Top achievements
Rank 1
answered on 20 Jan 2011, 02:35 AM
Found my issue, I had an extra parenthesis. The parser wasn't throwing any errors.
Tags
Grid
Asked by
Pat
Top achievements
Rank 1
Answers by
Pat
Top achievements
Rank 1
Share this question
or