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

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

3 Answers 178 Views
Grid
This is a migrated thread and some comments may be shown as answers.
iCognition
Top achievements
Rank 1
iCognition asked on 20 Nov 2013, 10:42 PM
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

3 Answers, 1 is accepted

Sort by
0
iCognition
Top achievements
Rank 1
answered on 20 Nov 2013, 11:20 PM
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
0
MARCO
Top achievements
Rank 1
answered on 16 Oct 2020, 04:09 PM

Hi,

I'm really struggling with this. 

Can you provide more details on how you fixed it ?

Thanks,

Marco

 

0
Tsvetomir
Telerik team
answered on 20 Oct 2020, 10:00 AM

Hi MARCO,

I have investigated the information that you have provided so far and I can say that we introduce a custom binder that understands the query parameters and parse them correctly into FilterDescriptors. In general, all of the options should be parsed into a DataSourceRequest object. 

Can you share the relevant snippets for the Telerik UI Grid along with the server implementation so that I can replicate the issue locally and look for a solution?

Looking forward to your reply.

 

Kind regards,
Tsvetomir
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
iCognition
Top achievements
Rank 1
Answers by
iCognition
Top achievements
Rank 1
MARCO
Top achievements
Rank 1
Tsvetomir
Telerik team
Share this question
or