Skip to content

Infragistics Community Forum / Cross Platform / Ultimate UI for Xamarin / Error Mesage: Cannot interpret token ‘{‘ at position 2.

Error Mesage: Cannot interpret token ‘{‘ at position 2.

New Discussion
Naji
Naji asked on Dec 20, 2010 9:51 AM

I am a new Infragistics user and am having issues using the Web Grid component. I added a web grid to my page and am now getting this error….any suggestions? Thanks a bunch!

 

Cannot interpret token ‘{‘ at position 2.

Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code.

Exception Details:
System.Data.SyntaxErrorException: Cannot interpret token ‘{‘ at position
2.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[SyntaxErrorException: Cannot interpret token '{' at position 2.]
   Infragistics.Web.UI.GridControls.WebDataGrid.DataBind() +466
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   Infragistics.Web.UI.Framework.Data.FlatDataBoundControl.EnsureDataBound() +52
   Infragistics.Web.UI.GridControls.WebDataGrid.EnsureDataBound() +113
   Infragistics.Web.UI.GridControls.WebDataGrid.CreateChildControls() +24
   System.Web.UI.Control.EnsureChildControls() +87
   Infragistics.Web.UI.GridControls.WebDataGrid.EnsureChildControls() +71
   System.Web.UI.Control.PreRenderRecursiveInternal() +44
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

 

 

Sign In to post a reply

Replies

  • 0
    Kavita Patel
    Kavita Patel answered on Mar 3, 2010 1:51 PM

    Did you get a fix to this?  I am having the same problem.

    • 0
      [Infragistics] Radoslav Minchev
      [Infragistics] Radoslav Minchev answered on Mar 3, 2010 2:27 PM

      Hello,

      Please, can you provide more information about this issue? 

      Thanks.

      • 0
        Kavita Patel
        Kavita Patel answered on Mar 3, 2010 2:42 PM

        Hello,

        It looks like I am getting error: "Cannot interpret token '{' at position 7" because the SQLDataSource I am binding the WebDataGrid to is being filtered by a control (dropdownbox).  The FilterExpresion of the SQLDataSource is set to: "MyFieldName = {0}".  Once I delete the filter expression the error no longer somes up.  The problem is I need to filter the SQLDataSource whenever this dropdownbox changes its Selected Value.  any suggestions on how I can do that?  Will the filter have to be through the WebDataGrid?

      • 0
        Federico
        Federico answered on Dec 8, 2010 9:27 PM

        Hi Rado,

        Any ideas if this issue has been sorted out?

         

      • 0
        [Infragistics] Radoslav Minchev
        [Infragistics] Radoslav Minchev answered on Dec 20, 2010 9:51 AM

        Hello,

        Can you take a look at the grid filtering behavior :

        https://pt-br.infragistics.com/help/aspnet/webdatagrid-filtering

        Hope that helps.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Naji
Favorites
0
Replies
5
Created On
Dec 20, 2010
Last Post
15 years, 2 months ago

Suggested Discussions

Created by

Created on

Dec 20, 2010 9:51 AM

Last activity on

Feb 23, 2026 12:28 PM