Request causes exception before reaching controller: "Expected token" exception on filter attempt

2 posts, 0 answers
  1. iCognition
    iCognition avatar
    66 posts
    Member since:
    Apr 2012

    Posted 20 Nov 2013 Link to this post

    Here is the post data:
    sort=&page=1&pageSize=30&group=&filter=Fields%5B3%5D.Value~contains~'hello'~or~Fields%5B3%5D.Value~contains~'statement'&Query=test
    The columns are dynamic so removing the iterator on the Fields collection is not an option

    Please provide support for iterable column filters
  2. iCognition
    iCognition avatar
    66 posts
    Member since:
    Apr 2012

    Posted 20 Nov 2013 Link to this post

    Never mind fixed it myself.

    For kendo developers: FilterLexer.cs
    private static bool IsIdentifierPart(char character)
    {
         return char.IsLetter(character) || char.IsDigit(character) || character == '_' || character == '$' || character == '[' || character == ']';
    }
    That function needs to be redone completely IMO I'm sure that there is a better way to figure out what constitutes a valid identifier
Back to Top